SparseLU Class Reference
Last update: 16.07.2025Base class of LU solvers. It already implements the standard LU decomposition. More...
Public Types | |
| typedef number | TScalar |
| data type of matrix elements | |
| typedef Eigen::SparseMatrix< TScalar > | TSparseMatrix |
| the sparse matrix base type | |
Public Member Functions | |
| virtual bool | Compute (SparseMatrix) |
| computes the factorization, returns true if succeeded More... | |
| virtual bool | Compute (SymSparseMatrix A) |
| computes the factorization, returns true if succeeded More... | |
| virtual Matrix | operator* (Matrix other) |
| returns the matrix product inv(A)*B More... | |
| Solve (Matrix INPUT, Matrix **OUTPUT, bool **OUTPUT) | |
| Solves the given vector on return; returns true if succeeded. More... | |
| Solve (SparseMatrix INPUT, Matrix **OUTPUT, bool **OUTPUT) | |
| Solves the given sparse RHS on return; returns true if succeeded. More... | |
| virtual bool | SolveInPlace (Matrix b) |
| Factorizes this matrix and solves the given vector in place;. More... | |
| SolveTransposed (Matrix INPUT, Matrix **OUTPUT, bool **OUTPUT) | |
| Solves the system (transpose(Matrix)*x=b for x; returns true if succeeded. More... | |
| SparseLU () | |
| destructor More... | |
| virtual string | typeIdent () |
Detailed Description
Base class of LU solvers. It already implements the standard LU decomposition.
Constructor & Destructor Documentation
◆ SparseLU()
| SparseLU | ( | ) |
destructor
default constructor
Member Function Documentation
◆ Compute() [1/2]
|
virtual |
computes the factorization, returns true if succeeded
- Parameters
-
A the matrix to be factorized
- Returns
- true of successful
Reimplemented from SparseSolver.
◆ Compute() [2/2]
|
virtual |
computes the factorization, returns true if succeeded
- Parameters
-
A the matrix to be factorized
- Returns
- true of successful
Reimplemented from SparseSolver.
◆ operator*()
returns the matrix product inv(A)*B
- Parameters
-
other the second argument of inv(A)*B
- Returns
- the product of the factorized matrix multiplied with other
◆ Solve() [1/2]
Solves the given vector on return; returns true if succeeded.
- Parameters
-
b the right hand side x the solution success the return value of Solve(b,x) allow the SWIG syntax (x,bool)=Solve(b) for solving x in Ax=b in script bindings
◆ Solve() [2/2]
|
inherited |
Solves the given sparse RHS on return; returns true if succeeded.
- Parameters
-
b the right hand side x the solution
- Returns
- true if successfulallows the SWIG syntax (x,bool)=Solve(b) for solving x in Ax=b in script
◆ SolveInPlace()
|
virtual |
Factorizes this matrix and solves the given vector in place;.
- Returns
- returns true if succeeded
- Parameters
-
b on input: the right hand side. On output: the solution x
Reimplemented from SparseSolver.
◆ SolveTransposed()
Solves the system (transpose(Matrix)*x=b for x; returns true if succeeded.
- Parameters
-
b the right hand side x the solution
- Returns
- true if successful allows the SWIG syntax (x,bool)=Solve(b) for solving x in Ax=b in script.
◆ typeIdent()
|
virtualinherited |
- Returns
- the name of the datatype