public static zeros(shape as ArrayList<Object>) as NDArray<T>:
Creates a new NDArray with zeros.
| Parameter | Description |
|---|---|
shape | Dimensions as objects converted to integers. |
A new NDArray filled with 0.
dims = [2, 3] a = NDArray<Int>.zeros(dims) print(a.shape)