-
NDArray.add(float scalar)
Returns a new NDArray equal to this + scalar (element-wise).
Returns a new NDArray equal to this + other (element-wise).
Creates a 1D NDArray with values in [0, stop).
NDArray.arange(float start,
float stop,
float step)
Creates a 1D NDArray with evenly spaced values in [start, stop).
Creates a 1D NDArray with values in [0, stop).
NDArray.arange(int start,
int stop,
int step)
Creates a 1D NDArray with integer-typed convenience overload.
NDArray.array(float... values)
Creates a 1D NDArray from the given values.
NDArray.array(float[][] values)
Creates a 2D NDArray from a row-major 2D float array.
Returns a new NDArray with the same data but a different shape.
NDArray.zeros(int... shape)
Creates an NDArray of zeros with the given shape.
Returns a new NDArray equal to this + other (element-wise).
void
Adds other to this array in-place (+=).