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

Class SubMatrixViewVector

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


    public class SubMatrixViewVector
    extends AMatrixViewVector
    A vector that wraps a sub-matrix of an arbitrary matrix
    See Also:
    Serialized Form
    • Constructor Detail

      • SubMatrixViewVector

        public SubMatrixViewVector(AMatrix source,
                                   int rowStart,
                                   int colStart,
                                   int rows,
                                   int cols)
    • Method Detail

      • get

        public double get(int i)
        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
        Overrides:
        get in class AMatrixViewVector
      • set

        public void set(int i,
                        double value)
        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
        Overrides:
        set in class AMatrixViewVector
      • unsafeGet

        public double unsafeGet(int i)
        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 AMatrixViewVector
      • unsafeSet

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

        public AVector exactClone()
        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
      • dotProduct

        public double dotProduct(double[] data,
                                 int offset)
        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.