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

Class VectorIndexScalar

    • 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
      • isMutable

        public boolean isMutable()
        Description copied from interface: INDArray
        Returns true if the INDArray is mutable (at least partially)
        Specified by:
        isMutable in interface INDArray
        Overrides:
        isMutable in class AScalar
      • 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
      • 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.
      • 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 VectorIndexScalar 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
      • mutable

        public AScalar mutable()
        Description copied from interface: INDArray
        Coerces this INDArray to a fully mutable format. May return the same INDArray if already fully mutable
        Specified by:
        mutable in interface INDArray
        Specified by:
        mutable in interface IScalar
        Overrides:
        mutable in class AScalar
      • 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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.