Documentation of 'mikera.matrixx.impl.VectorMatrixM3' Java class
VectorMatrixM3
mikera.matrixx.impl

Class VectorMatrixM3

    • Constructor Detail

      • VectorMatrixM3

        public VectorMatrixM3(int rowCount)
    • Method Detail

      • multiply

        public void multiply(double factor)
        Description copied from interface: INDArray
        Multiplies all elements of the array in place by a given double value
        Specified by:
        multiply in interface INDArray
        Overrides:
        multiply in class AMatrix
      • replaceRow

        public void replaceRow(int i,
                               AVector row)
        Description copied from class: AVectorMatrix
        Replaces a row in this matrix. The row must be of a type allowed by the matrix. Detaches the current row: this will invalidate views over the matrix that include the original row.
        Specified by:
        replaceRow in class AVectorMatrix<Vector3>
      • replaceRow

        public void replaceRow(int i,
                               Vector3 row)
      • get

        public double get(int row,
                          int column)
        Description copied from interface: INDArray
        Returns the double value at the specified position in a 2D matrix
        Specified by:
        get in interface INDArray
        Specified by:
        get in interface IMatrix
        Overrides:
        get in class AVectorMatrix<Vector3>
      • set

        public void set(int row,
                        int column,
                        double value)
        Description copied from interface: INDArray
        Sets a value at a given position in a mutable 2D array
        Specified by:
        set in interface INDArray
        Specified by:
        set in interface IMatrix
        Overrides:
        set in class ARectangularMatrix
      • unsafeGet

        public double unsafeGet(int row,
                                int column)
        Description copied from class: AMatrix
        Gets an element in the matrix in an unsafe fashion, without performing bound checks The result is undefined if the row and column are out of bounds.
        Overrides:
        unsafeGet in class AVectorMatrix<Vector3>
        Returns:
      • unsafeSet

        public void unsafeSet(int row,
                              int column,
                              double value)
        Description copied from class: AMatrix
        Sets an element value in the matrix in an unsafe fashion, without performing bound checks The result is undefined if the row and column are out of bounds.
        Overrides:
        unsafeSet in class AVectorMatrix<Vector3>
      • getRowClone

        public Vector3 getRowClone(int row)
        Description copied from interface: IMatrix
        Returns a row of the matrix as a new cloned, mutable vector. The cloned row may be modified without affecting the original matrix.
        Specified by:
        getRowClone in interface IMatrix
        Overrides:
        getRowClone in class AMatrix
      • transform

        public void transform(AVector source,
                              AVector dest)
        Description copied from interface: IMatrix
        Transforms a source vector into a destination vector, using matrix multiplication (inner product). The destination vector is overwritten.
        Specified by:
        transform in interface IMatrix
        Overrides:
        transform in class AVectorMatrix<Vector3>
      • rowDotProduct

        public double rowDotProduct(int i,
                                    AVector inputVector)
        Description copied from class: AMatrix
        Returns the dot product of a specific row with a vector. Unsafe operation: performs no bounds checking
        Overrides:
        rowDotProduct in class AVectorMatrix<Vector3>
        Returns:
      • clone

        public VectorMatrixM3 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 AVectorMatrix<Vector3>
      • exactClone

        public VectorMatrixM3 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 AMatrix
        Returns:
        A clone of the original array

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.