Documentation of 'mikera.arrayz.impl.BaseNDArray' Java class
BaseNDArray
mikera.arrayz.impl

Class BaseNDArray

    • Method Detail

      • dimensionality

        public int dimensionality()
        Description copied from interface: INDArray
        Returns the dimensionality of the array (i.e. the number of dimensions in the array shape) e.g. 0 for a scalar, 1 for a vector, 2 for a matrix etc.
        Specified by:
        dimensionality in interface INDArray
        Overrides:
        dimensionality in class BaseShapedArray
      • getStride

        public final int getStride(int dim)
        Description copied from interface: IStridedArray
        Gets the stide for a specific dimension in this strided array.
        Specified by:
        getStride in interface IStridedArray
        Returns:
      • getShape

        public final int getShape(int dim)
        Description copied from interface: INDArray
        Returns the dimension size for a specific dimension in the array's shape
        Specified by:
        getShape in interface INDArray
        Overrides:
        getShape in class BaseShapedArray
      • getIndex

        public int getIndex(int... indexes)
      • get

        public double get(int... indexes)
        Description copied from interface: INDArray
        Returns the double value at the specified index position in an array
        Specified by:
        get in interface INDArray
      • get

        public double get(int x)
        Description copied from interface: INDArray
        Returns the double value at the specified position in a 1D vector
        Specified by:
        get in interface INDArray
        Specified by:
        get in class AbstractArray<INDArray>
      • get

        public double get(int x,
                          int y)
        Description copied from interface: INDArray
        Returns the double value at the specified position in a 2D matrix
        Specified by:
        get in interface INDArray
        Specified by:
        get in class AbstractArray<INDArray>
      • isPackedArray

        public boolean isPackedArray()
        Description copied from interface: IStridedArray
        Checks if this array is fully packed in row major order.
        Specified by:
        isPackedArray in interface IStridedArray
        Returns:
      • elementCount

        public long elementCount()
        Description copied from interface: INDArray
        Returns the total number of elements in this array. Equivalent to the product of all dimension sizes.
        Specified by:
        elementCount in interface INDArray
        Overrides:
        elementCount in class BaseShapedArray
      • getArrayOffset

        public int getArrayOffset()
        Description copied from interface: IStridedArray
        Gets the data array offset for the first element of this strided array
        Specified by:
        getArrayOffset in interface IStridedArray
        Returns:
      • getStrides

        public int[] getStrides()
        Description copied from interface: IStridedArray
        Gets the strides for each dimension of this strided array. The returned array should not be modified
        Specified by:
        getStrides in interface IStridedArray
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.