public NDArray(notnull values as IList<IList<T>>)
Copies rectangular rows into a new 2D NDArray, including empty rows. Rows and columns determine the shape, in row-major order.
| Parameter | Description |
|---|---|
values | Source rows, copied independently of their lists. |
a = NDArray<Int>([[1, 2], [3, 4]]) print(a.shape) # [2, 2] print(a[1, 0]) # 3