public class BandLU
extends java.lang.Object
Constructor and Description |
---|
BandLU(int n,
int kl,
int ku)
Constructor for BandLU
|
Modifier and Type | Method and Description |
---|---|
BandLU |
factor(BandMatrix A)
Creates an LU decomposition of the given matrix
|
BandLU |
factor(BandMatrix A,
boolean inplace)
Creates an LU decomposition of the given matrix
|
static BandLU |
factorize(BandMatrix A)
Creates an LU decomposition of the given matrix
|
UnitLowerTriangBandMatrix |
getL()
Returns the lower triangular factor
|
BandMatrix |
getLU()
Returns the decomposition matrix
|
int[] |
getPivots()
Returns the row pivots
|
UpperTriangBandMatrix |
getU()
Returns the upper triangular factor
|
boolean |
isSingular()
Checks for singularity
|
double |
rcond(Matrix A,
Matrix.Norm norm)
Computes the reciprocal condition number, using either the infinity norm
of the 1 norm.
|
DenseMatrix |
solve(DenseMatrix B)
Computes
A\B , overwriting B |
DenseMatrix |
transSolve(DenseMatrix B)
Computes
AT\B , overwriting B |
public BandLU(int n, int kl, int ku)
n
- Matrix sizekl
- Number of lower matrix bandsku
- Number of upper matrix bandspublic static BandLU factorize(BandMatrix A)
A
- Matrix to decompose. Not modifiedpublic BandLU factor(BandMatrix A, boolean inplace)
A
- Matrix to decompose. If the decomposition is in-place, its
number of superdiagonals must equal kl+ku
inplace
- Wheter or not the decomposition should overwrite the passed
matrixpublic BandLU factor(BandMatrix A)
A
- Matrix to decompose. It will be overwritten with the
decomposition. Its number of superdiagonals must equal
kl+ku
public UnitLowerTriangBandMatrix getL()
public UpperTriangBandMatrix getU()
public BandMatrix getLU()
public int[] getPivots()
public boolean isSingular()
public double rcond(Matrix A, Matrix.Norm norm)
A
- The matrix this is a decomposition ofnorm
- Either Norm.One
or Norm.Infinity
public DenseMatrix solve(DenseMatrix B) throws MatrixSingularException
A\B
, overwriting B
MatrixSingularException
public DenseMatrix transSolve(DenseMatrix B) throws MatrixSingularException
AT\B
, overwriting B
MatrixSingularException