ListShape extension

on

Properties

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

Methods

flatten<T>() List<T>
Flatten this list, T is element type if not specified List
reshape<T>(List<int> shape) List
Reshape list to a another shape