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

Class IndexVector

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<INDArray>, java.lang.Iterable<java.lang.Double>, INDArray, IVector

    Deprecated.

    @Deprecated
    public class IndexVector
    extends ASizedVector
    A constrained immutable vector implementation wrapping an integer Index
    See Also:
    Serialized Form
    • Method Detail

      • of

        public static IndexVector of(int... values)
        Deprecated. 
      • ofDoubles

        public IndexVector ofDoubles(double... values)
        Deprecated. 
      • wrap

        public static IndexVector wrap(Index a)
        Deprecated. 
        Creates an IndexVector wrapping the given immutable index WARNING: Index will be used as internal storage for the IndexVector
        Parameters:
        a -
        Returns:
      • get

        public double get(int i)
        Deprecated. 
        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 interface IVector
        Specified by:
        get in class AVector
      • unsafeGet

        public double unsafeGet(int i)
        Deprecated. 
        Description copied from class: AVector
        Like get, but performs no bounds checking. Results are undefined if the index is out of range
        Overrides:
        unsafeGet in class AVector
      • set

        public void set(int i,
                        double value)
        Deprecated. 
        Description copied from interface: INDArray
        Sets a value at a given position in a mutable 1D array
        Specified by:
        set in interface INDArray
        Specified by:
        set in interface IVector
        Specified by:
        set in class AVector
      • isFullyMutable

        public boolean isFullyMutable()
        Deprecated. 
        Description copied from class: AVector
        Returns true if this vector is fully mutable, i.e. can contain any unconstrained double values
        Specified by:
        isFullyMutable in interface INDArray
        Overrides:
        isFullyMutable in class AVector
      • getElements

        public void getElements(double[] data,
                                int offset)
        Deprecated. 
        Description copied from interface: INDArray
        Copies all elements of this array a double array at the specified offset
        Specified by:
        getElements in interface INDArray
        Overrides:
        getElements in class AVector
      • isMutable

        public boolean isMutable()
        Deprecated. 
        Description copied from class: AVector
        Returns true if this vector is mutable.
        Specified by:
        isMutable in interface INDArray
        Overrides:
        isMutable in class AVector
      • exactClone

        public AVector exactClone()
        Deprecated. 
        Description copied from class: AVector
        Returns an exact clone of this vector, i.e. of the same type
        Specified by:
        exactClone in interface INDArray
        Specified by:
        exactClone in class AVector
        Returns:
        A clone of the original array
      • validate

        public void validate()
        Deprecated. 
        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 AVector
      • dotProduct

        public double dotProduct(double[] data,
                                 int offset)
        Deprecated. 
        Description copied from class: AVector
        Fast dot product with a double[] array. Performs no bounds checking. Likely to be faster than most other dot product operations
        Specified by:
        dotProduct in class AVector

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.