public static full(shape as ArrayList<Object>, value as T) as NDArray<T>:
Creates a new NDArray filled with a given value.
| Parameter | Description |
|---|---|
shape | Dimensions as objects converted to integers. |
value | Value written in every cell. |
A new filled NDArray.
dims = [2, 3] a = NDArray<Int>.full(dims, 9) print(a)