Overview
>
klyn.math
>
NDArray
>
zeros
Overview
Index
Tree
Deprecated
klyn.math.NDArray.zeros
method
public static zeros(shape as IList<UInt>) as NDArray<T>:
Description
Creates a new NDArray with zeros.
a = NDArray<Int>.zeros([2, 2])
Parameters
shape The shape of the array.
Returns
A new NDArray filled with 0. ``` a = NDArray<Int>.zeros([2, 2]) ```