|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--ru.sscc.matrix.solve.RealDirectSolver
|
+--ru.sscc.matrix.solve.CholeskyBandSolver
Performs the solving of SLAE with Positive Definite Symmetric
Banded Matrix by the Cholesky method (eg Square Root factorization).
A banded matrix is presented by a SymBandedMatrix instance
inside.
When a matrix is factorized, its algebraic properties are locked and matrix by vector multiplications are impossible. The solve() operation is permitted after the factorization only.
| Field Summary | |
protected SymBandedMatrix |
matrix
The attached matrix. |
| Constructor Summary | |
CholeskyBandSolver()
Constructs an instance without attached matrix. |
|
CholeskyBandSolver(int size,
int halfWidth,
boolean toeplitz)
Constructs an instance with clear matrix of the double[] type. |
|
CholeskyBandSolver(RealContainer entries,
int size,
int halfWidth,
boolean toeplitz)
Constructs an instance based on a user's real data container. |
|
CholeskyBandSolver(SymBandedMatrix matrix)
Constructs an instance upon a matrix. |
|
| Method Summary | |
void |
attach(SymBandedMatrix matrix)
Attaches a matrix to the solver and sets the initial state for the solver and matrix. |
void |
factorize()
Factorizes the matrix using Cholesky (Square Root) factorization method in assumption that the matrix is positive definite. |
SymBandedMatrix |
getMatrix()
Returns a matrix attached with the solver. |
void |
reuse(boolean toeplitz)
Clears the factorization tag to reuse the matrix once more and resets its toeplitz tag to new value. |
void |
solve(RealVector source,
RealVector target)
Solves SLAE using already factorized matrix. |
int |
sourceSize()
Returns a size of right-hand side (rows number). |
int |
targetSize()
Returns a size of solution (columns number). |
| Methods inherited from class ru.sscc.matrix.solve.RealDirectSolver |
constructInverse,
constructRefinedInverse,
ensureFactorized,
isFactorized,
setFactorized,
solveAndRefine |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected SymBandedMatrix matrix
| Constructor Detail |
public CholeskyBandSolver()
public CholeskyBandSolver(int size,
int halfWidth,
boolean toeplitz)
size - a matrix dimensionhalfWidth - a width of matrix's half-band (k+1)toeplitz - is true for Toeplitz matrix
public CholeskyBandSolver(RealContainer entries,
int size,
int halfWidth,
boolean toeplitz)
entries - an upper half-band containersize - a matrix dimensionhalfWidth - a width of matrix's half-band (k+1)toeplitz - is true for Toeplitz matrixpublic CholeskyBandSolver(SymBandedMatrix matrix)
matrix - a positive symmetric banded matrix| Method Detail |
public void attach(SymBandedMatrix matrix)
public final SymBandedMatrix getMatrix()
public final int sourceSize()
public final int targetSize()
public final void reuse(boolean toeplitz)
public void factorize()
throws CalculatingException
CalculatingException
is thrown.
public void solve(RealVector source,
RealVector target)
source - a source vector (the right hand side of SLAE)target - a target vector to write the solution
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||