public class LUPDecomposition extends Object implements Cloneable, Serializable
Constructor and Description |
---|
LUPDecomposition(Matrix A) |
LUPDecomposition(Matrix A,
ExecutorService threadpool) |
LUPDecomposition(Matrix L,
Matrix U,
Matrix P) |
Modifier and Type | Method and Description |
---|---|
static Matrix |
backSub(Matrix U,
Matrix y)
Solves for the matrix x such that U x = y
|
static Matrix |
backSub(Matrix U,
Matrix y,
ExecutorService threadpool)
Solves for the matrix x such that U x = y
|
static Vec |
backSub(Matrix U,
Vec y)
Solves for the vector x such that U x = y
|
LUPDecomposition |
clone() |
double |
det() |
static Matrix |
forwardSub(Matrix L,
Matrix b)
Solves for the matrix x such that L x = b
|
static Matrix |
forwardSub(Matrix L,
Matrix b,
ExecutorService threadpool)
Solves for the matrix x such that L x = b
|
static Vec |
forwardSub(Matrix L,
Vec b)
Solves for the vector x such that L x = b
|
boolean |
isSquare() |
Matrix |
solve(Matrix B) |
Matrix |
solve(Matrix B,
ExecutorService threadpool) |
Vec |
solve(Vec b) |
public LUPDecomposition(Matrix A)
public LUPDecomposition(Matrix A, ExecutorService threadpool)
public boolean isSquare()
public double det()
public Matrix solve(Matrix B, ExecutorService threadpool)
public LUPDecomposition clone()
public static Vec forwardSub(Matrix L, Vec b)
L
- a lower triangular matrixb
- a vector whos length is equal to the rows in Lpublic static Matrix forwardSub(Matrix L, Matrix b)
L
- a lower triangular matrixb
- a matrix with the same number of rows as Lpublic static Matrix forwardSub(Matrix L, Matrix b, ExecutorService threadpool)
L
- a lower triangular matrixb
- a matrix with the same number of rows as Lthreadpool
- source of threads for the parallel computationpublic static Vec backSub(Matrix U, Vec y)
U
- an upper triangular matrixy
- a vector whos length is equal to the rows in Upublic static Matrix backSub(Matrix U, Matrix y)
U
- an upper triangular matrixy
- a matrix with the same number of rows as Upublic static Matrix backSub(Matrix U, Matrix y, ExecutorService threadpool)
U
- an upper triangular matrixy
- a matrix with the same number of rows as Uthreadpool
- source of threads for the parallel computationCopyright © 2017. All rights reserved.