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

Class BaseStridedVector

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<INDArray>, java.lang.Iterable<java.lang.Double>, IStridedArray, INDArray, IVector
    Direct Known Subclasses:
    StridedVector


    public abstract class BaseStridedVector
    extends AStridedVector
    Base class for strided vectors backed with a double array and fixed offset / stride Supports both mutable and immutable subclasses
    See Also:
    Serialized Form
    • Method Detail

      • getStride

        public final int getStride()
        Description copied from class: AStridedVector
        Gets the stride of this strided vector.
        Specified by:
        getStride in class AStridedVector
        Returns:
      • get

        public final 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
        Specified by:
        get in class AVector
      • unsafeGet

        public final 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 AVector
      • dotProduct

        public double dotProduct(double[] ds,
                                 int off)
        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
        Overrides:
        dotProduct in class AStridedVector
      • dotProduct

        public double dotProduct(double[] ds,
                                 int doffset,
                                 int dstride)
        Description copied from class: AVector
        Fast dot product with a double[] array and a stride. Performs no bounds checking. Likely to be faster than other dot product operations
        Overrides:
        dotProduct in class AVector
      • dotProduct

        public double dotProduct(AVector v)
        Description copied from class: AVector
        Returns the dot product of this vector with another vector The vectors must have the same length: if not the result is undefined
        Overrides:
        dotProduct in class AStridedVector
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.