Documentation of 'jsat.linear.GenericMatrix' Java class
GenericMatrix
jsat.linear

Class GenericMatrix

    • Constructor Detail

      • GenericMatrix

        public GenericMatrix()
    • Method Detail

      • mutableAdd

        public void mutableAdd(double c,
                               Matrix b)
        Description copied from class: Matrix
        Alters the current matrix to store the value A+c*B
        Specified by:
        mutableAdd in class Matrix
        Parameters:
        c - the scalar constant to multiple B by
        b - the matrix to add to this
      • mutableAdd

        public void mutableAdd(double c,
                               Matrix b,
                               java.util.concurrent.ExecutorService threadPool)
        Description copied from class: Matrix
        Alters the current matrix to store the value A+c*B
        Specified by:
        mutableAdd in class Matrix
        Parameters:
        c - the scalar constant to multiple B by
        b - the matrix to add to this
        threadPool - the source of threads to do computation in parallel
      • mutableAdd

        public void mutableAdd(double c)
        Description copied from class: Matrix
        Alters the current matrix to store the value A+c
        Specified by:
        mutableAdd in class Matrix
        Parameters:
        c - the scalar constant to add to this
      • mutableAdd

        public void mutableAdd(double c,
                               java.util.concurrent.ExecutorService threadPool)
        Description copied from class: Matrix
        Alters the current matrix to store the value A+c
        Specified by:
        mutableAdd in class Matrix
        Parameters:
        c - the scalar constant to add to this
        threadPool - the source of threads to do computation in parallel
      • multiply

        public void multiply(Vec b,
                             double z,
                             Vec c)
        Description copied from class: Matrix
        If this matrix is Am x n, and b has a length of n, and c has a length of m, then this will mutate c to store c = c + A*b*z
        Specified by:
        multiply in class Matrix
        Parameters:
        b - the vector to be treated as a colum vector
        z - the constant to multiply the A*b value by.
        c - where to place the result by addition
      • multiply

        public void multiply(Matrix b,
                             Matrix C)
        Description copied from class: Matrix
        Alters the matrix C to be equal to C = C+A*B
        Specified by:
        multiply in class Matrix
        Parameters:
        b - the matrix to multiply this with
        C - the matrix to add the result to
      • multiplyTranspose

        public void multiplyTranspose(Matrix b,
                                      Matrix C)
        Description copied from class: Matrix
        Alters the matrix C to be equal to C = C+A*BT
        Specified by:
        multiplyTranspose in class Matrix
        Parameters:
        b - the matrix to multiply this with
        C - the matrix to add the result to
      • multiplyTranspose

        public void multiplyTranspose(Matrix b,
                                      Matrix C,
                                      java.util.concurrent.ExecutorService threadPool)
        Description copied from class: Matrix
        Alters the matrix C to be equal to C = C+A*BT
        Specified by:
        multiplyTranspose in class Matrix
        Parameters:
        b - the matrix to multiply this with
        C - the matrix to add the result to
        threadPool - the source of threads to do computation in parallel
      • multiply

        public void multiply(Matrix b,
                             Matrix C,
                             java.util.concurrent.ExecutorService threadPool)
        Description copied from class: Matrix
        Alters the matrix C to be equal to C = C+A*B
        Specified by:
        multiply in class Matrix
        Parameters:
        b - the matrix to multiply this with
        C - the matrix to add the result to
        threadPool - the source of threads to do computation in parallel
      • mutableMultiply

        public void mutableMultiply(double c)
        Description copied from class: Matrix
        Alters the current matrix to be equal to A*c
        Specified by:
        mutableMultiply in class Matrix
        Parameters:
        c - the scalar constant to multiply by
      • mutableMultiply

        public void mutableMultiply(double c,
                                    java.util.concurrent.ExecutorService threadPool)
        Description copied from class: Matrix
        Alters the current matrix to be equal to A*c
        Specified by:
        mutableMultiply in class Matrix
        Parameters:
        c - the scalar constant to multiply by
        threadPool - the source of threads to do computation in parallel
      • transposeMultiply

        public void transposeMultiply(double c,
                                      Vec b,
                                      Vec x)
        Description copied from class: Matrix
        Alters the vector x to be equal to x = x + A'*b*c
        Specified by:
        transposeMultiply in class Matrix
        Parameters:
        c - the scalar constant to multiply by
        b - the vector to multiply by
        x - the vector the add the result to
      • transposeMultiply

        public void transposeMultiply(Matrix b,
                                      Matrix C)
        Description copied from class: Matrix
        Alters the matrix C so that C = C + A'*B
        Specified by:
        transposeMultiply in class Matrix
        Parameters:
        b - the matrix to multiply by
        C - the matrix to add the result to
      • transposeMultiply

        public void transposeMultiply(Matrix b,
                                      Matrix C,
                                      java.util.concurrent.ExecutorService threadPool)
        Description copied from class: Matrix
        Alters the matrix C so that C = C + A'*B
        Specified by:
        transposeMultiply in class Matrix
        Parameters:
        b - the matrix to multiply by
        C - the matrix to place the results in
        threadPool - the source of threads to do computation in parallel
      • mutableTranspose

        public void mutableTranspose()
        Description copied from class: Matrix
        Transposes the current matrix in place, altering its value. Only valid for square matrices
        Specified by:
        mutableTranspose in class Matrix
      • transpose

        public void transpose(Matrix C)
        Description copied from class: Matrix
        Overwrites the values stored in matrix C to store the value of A'
        Specified by:
        transpose in class Matrix
        Parameters:
        C - the matrix to store the transpose of the current matrix
      • swapRows

        public void swapRows(int r1,
                             int r2)
        Description copied from class: Matrix
        Alters the current matrix by swapping the values stored in two different rows.
        Specified by:
        swapRows in class Matrix
        Parameters:
        r1 - the first row to swap
        r2 - the second row to swap
      • zeroOut

        public void zeroOut()
        Description copied from class: Matrix
        Alters the current matrix so that all values are equal to zero.
        Specified by:
        zeroOut in class Matrix
      • lup

        public Matrix[] lup(java.util.concurrent.ExecutorService threadPool)
        Specified by:
        lup in class Matrix
      • qr

        public Matrix[] qr(java.util.concurrent.ExecutorService threadPool)
        Specified by:
        qr in class Matrix

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.