Documentation of 'mikera.vectorz.impl.ArrayIndexScalar' Java class
ArrayIndexScalar
mikera.vectorz.impl

Class ArrayIndexScalar

    • Constructor Detail

      • ArrayIndexScalar

        public ArrayIndexScalar(double[] array,
                                int index)
    • Method Detail

      • get

        public double get()
        Description copied from interface: INDArray
        Returns the double value of a scalar array
        Specified by:
        get in interface INDArray
        Specified by:
        get in interface IScalar
        Specified by:
        get in class AScalar
      • set

        public void set(double value)
        Description copied from interface: INDArray
        Sets all elements of an array to a specific double value
        Specified by:
        set in interface INDArray
        Specified by:
        set in interface IScalar
        Specified by:
        set in class AScalar
      • isView

        public boolean isView()
        Description copied from interface: INDArray
        Return true if this array is considered as a view type. This indicates (but does not guarantee): a) Data is *likely* to be shared with other arrays, so mutation of one may affect others b) It is *unlikely* to be in the most efficient general purpose format isView is intended to be used as for heuristics. It should *not* be used where the outcome might affect correctness.
        Specified by:
        isView in interface INDArray
      • isFullyMutable

        public boolean isFullyMutable()
        Description copied from interface: INDArray
        If this method returns true, the INDArray is guaranteed to be fully mutable in all positions i.e. every position can store any valid double value
        Specified by:
        isFullyMutable in interface INDArray
        Overrides:
        isFullyMutable in class AScalar
      • clone

        public Scalar clone()
        Description copied from interface: INDArray
        Returns a clone of the array data, as a new array which will be fully mutable and may be of a different class to the original. Clone should attempt to return the most efficient possible array type. Clone should preserve sparsity property where possible, but this is not guaranteed.
        Specified by:
        clone in interface INDArray
        Overrides:
        clone in class AScalar
      • exactClone

        public ArrayIndexScalar exactClone()
        Description copied from interface: INDArray
        Creates a deep clone of an array, using the same class implementation as the original array
        Specified by:
        exactClone in interface INDArray
        Specified by:
        exactClone in class AScalar
        Returns:
        A clone of the original array
      • validate

        public void validate()
        Description copied from interface: INDArray
        Validates the internal data structure of the INDArray. Throws an exception on failure. Failure indicates a serious bug and/or data corruption.
        Specified by:
        validate in interface INDArray
        Overrides:
        validate in class AScalar
      • getArray

        public double[] getArray()
        Description copied from interface: IStridedArray
        Gets the underlying data array for this strided array Unsafe operation - may allow modification of otherwise immutable arrays
        Specified by:
        getArray in interface IDenseArray
        Specified by:
        getArray in interface IStridedArray
      • 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:
      • getStride

        public int getStride(int dimension)
        Description copied from interface: IStridedArray
        Gets the stide for a specific dimension in this strided array.
        Specified by:
        getStride in interface IStridedArray
        Returns:
      • 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:
      • asDoubleArray

        public double[] asDoubleArray()
        Description copied from interface: INDArray
        Returns the underlying double array representing the densely packed elements of this array. Modifications to this double array will change the original array. Returns null if there is no such array.
        Specified by:
        asDoubleArray in interface INDArray
        Overrides:
        asDoubleArray in class AScalar
      • immutable

        public ImmutableScalar immutable()
        Description copied from interface: INDArray
        Returns an immutable version of this array. May return the same array if already immutable. Guarantees a defensive copy if the array is mutable.
        Specified by:
        immutable in interface INDArray
        Specified by:
        immutable in interface IScalar
        Overrides:
        immutable in class AScalar

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.