klyn.math.NDArray.NDArray
constructor
public NDArray(shape as ArrayList<Object>):
Description

Constructs a new NDArray with the given shape.

Parameters
ParameterDescription
shapeThe shape of the array.
Throws
  • ValueException if a dimension is invalid or the element count exceeds UInt.MAX_VALUE.
Example
a = NDArray<Int>([3, 4])