klyn.math.NDArray.NDArray
constructor
public NDArray(shape as Tuple):
Description

Constructs a new NDArray from a tuple shape.

a = NDArray<Int>((3, 4))
Parameters
ParameterDescription
shapeFixed-size tuple of dimensions.
Throws
  • ValueException if a dimension is invalid or the element count exceeds UInt.MAX_VALUE.