|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uib.cipr.matrix.BandLU
public class BandLU
Banded LU decomposition
Constructor Summary | |
---|---|
BandLU(int n,
int kl,
int ku)
Constructor for BandLU |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BandLU(int n, int kl, int ku)
n
- Matrix sizekl
- Number of lower matrix bandsku
- Number of upper matrix bandsMethod Detail |
---|
public static BandLU factorize(BandMatrix A)
A
- Matrix to decompose. Not modified
public 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
matrix
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |