klyn.math.NDArray.zeros
method
public static zeros(shape as Tuple) as NDArray<T>:
Description

Creates a new NDArray with zeros from a tuple shape.

a = NDArray<Int>.zeros((2, 2))
Parameters
  • shape Fixed-size tuple of dimensions.
Returns

A new NDArray filled with 0.