NDArray
class NDArray<T, D : Dimension>( data: ImmutableMemoryView<T>, val offset: Int = 0, val shape: IntArray, val strides: IntArray = computeStrides(shape), val dim: D, val base: MultiArray<T, out Dimension>? = null) : MutableMultiArray<T, D>
Content copied to clipboard
A class that implements multidimensional arrays. This implementation is based on primitive arrays. With the help of offset, shape, strides there is a multidimensionality representation over a sequential homogeneous array.
Native code uses GetPrimitiveArrayCritical
for calculation.
Parameters
T
type of stored values.
D
dimension.
Constructors
Functions
Link copied to clipboard
Returns new one-dimensional ndarray which is a copy of the original ndarray.
Link copied to clipboard
Returns true
if this ndarray is not empty.
Link copied to clipboard
Returns an ndarray with a new (dim1) shape without changing data.
open override fun reshape( dim1: Int, dim2: Int, dim3: Int, dim4: Int): D4Array<T>
Content copied to clipboard