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

Class VectorMatrixMN

    • Constructor Detail

      • VectorMatrixMN

        public VectorMatrixMN(int rowCount,
                              int columnCount)
    • Method Detail

      • create

        public static VectorMatrixMN create(java.util.List<?> rows)
        Create a matrix from a list of rows
        Parameters:
        rows -
        Returns:
      • create

        public static VectorMatrixMN create(java.util.List<?> rows,
                                            int[] shape)
      • 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<AVector>
      • swapRows

        public void swapRows(int i,
                             int j)
        Description copied from class: AMatrix
        Swaps two rows of the matrix in place This is an elementary row operation
        Overrides:
        swapRows in class AMatrix
      • 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<AVector>
      • 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<AVector>
        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<AVector>
      • addAt

        public void addAt(int i,
                          int j,
                          double d)
        Description copied from interface: IMatrix
        Adds a value at a specific position in the matrix, mutating the matrix Does not perform bounds checking - this in an unsafe operation
        Specified by:
        addAt in interface IMatrix
        Overrides:
        addAt 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<AVector>
      • 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<AVector>
        Returns:
      • clone

        public Matrix 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<AVector>
      • exactClone

        public VectorMatrixMN 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.