ListShape extension

on

Properties

computeNumElements int

Available on List, provided by the ListShape extension

Get the total number of elements in list
no setter
shape List<int>

Available on List, provided by the ListShape extension

Get shape of the list
no setter

Methods

flatten<T>() List<T>

Available on List, provided by the ListShape extension

Flatten this list, T is element type if not specified List
reshape<T>(List<int> shape) List

Available on List, provided by the ListShape extension

Reshape list to a another shape