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

Class LUPDecomposition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class LUPDecomposition
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    This class uses the LUP decomposition of a matrix to provide efficient methods for solving A x = b, as well as computing the determinant of A.
    See Also:
    Serialized Form
    • Constructor Detail

      • LUPDecomposition

        public LUPDecomposition(Matrix A)
      • LUPDecomposition

        public LUPDecomposition(Matrix A,
                                java.util.concurrent.ExecutorService threadpool)
    • Method Detail

      • isSquare

        public boolean isSquare()
        Returns:
        true if the original matrix A, from which this factorization is from, is a square matrix
      • det

        public double det()
        Returns:
        the determinant of the original Matrix A, |A|
      • solve

        public Vec solve(Vec b)
      • solve

        public Matrix solve(Matrix B,
                            java.util.concurrent.ExecutorService threadpool)
      • clone

        public LUPDecomposition clone()
        Overrides:
        clone in class java.lang.Object
      • forwardSub

        public static Vec forwardSub(Matrix L,
                                     Vec b)
        Solves for the vector x such that L x = b
        Parameters:
        L - a lower triangular matrix
        b - a vector whos length is equal to the rows in L
        Returns:
        x such that L x = b
      • forwardSub

        public static Matrix forwardSub(Matrix L,
                                        Matrix b)
        Solves for the matrix x such that L x = b
        Parameters:
        L - a lower triangular matrix
        b - a matrix with the same number of rows as L
        Returns:
        x such that L x = b
      • forwardSub

        public static Matrix forwardSub(Matrix L,
                                        Matrix b,
                                        java.util.concurrent.ExecutorService threadpool)
        Solves for the matrix x such that L x = b
        Parameters:
        L - a lower triangular matrix
        b - a matrix with the same number of rows as L
        threadpool - source of threads for the parallel computation
        Returns:
        x such that L x = b
      • backSub

        public static Vec backSub(Matrix U,
                                  Vec y)
        Solves for the vector x such that U x = y
        Parameters:
        U - an upper triangular matrix
        y - a vector whos length is equal to the rows in U
        Returns:
        x such that U x = y
      • backSub

        public static Matrix backSub(Matrix U,
                                     Matrix y)
        Solves for the matrix x such that U x = y
        Parameters:
        U - an upper triangular matrix
        y - a matrix with the same number of rows as U
        Returns:
        x such that U x = y
      • backSub

        public static Matrix backSub(Matrix U,
                                     Matrix y,
                                     java.util.concurrent.ExecutorService threadpool)
        Solves for the matrix x such that U x = y
        Parameters:
        U - an upper triangular matrix
        y - a matrix with the same number of rows as U
        threadpool - source of threads for the parallel computation
        Returns:
        x such that U x = y

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.