|
OOFEM 3.0
|
#include <icprecond.h>
Public Member Functions | |
| CompCol_ICPreconditioner (const SparseMtrx &A, InputRecord &attributes) | |
| Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix. | |
| CompCol_ICPreconditioner () | |
| Constructor. The user should call initializeFrom and init services in this given order to ensure consistency. | |
| virtual | ~CompCol_ICPreconditioner (void) |
| Destructor. | |
| void | init (const SparseMtrx &a) override |
| void | initialize (const CompCol &A) |
| void | solve (const FloatArray &rhs, FloatArray &solution) const override |
| void | trans_solve (const FloatArray &rhs, FloatArray &solution) const override |
| const char * | giveClassName () const override |
| Returns the preconditioner name. | |
| void | initializeFrom (InputRecord &ir) override |
| Initializes receiver from given record. Empty implementation. | |
| Public Member Functions inherited from oofem::Preconditioner | |
| Preconditioner (const SparseMtrx &a, InputRecord &attributes) | |
| Preconditioner () | |
| virtual | ~Preconditioner (void) |
| Destructor. | |
| FloatArray | solve (const FloatArray &rhs) const |
| FloatArray | trans_solve (const FloatArray &rhs) const |
Protected Member Functions | |
| void | qsortRow (IntArray &, FloatArray &, int l, int r) |
| int | qsortRowPartition (IntArray &, FloatArray &, int l, int r) |
| void | ICSolve (FloatArray &dest) const |
| void | ICFactor () |
Private Attributes | |
| FloatArray | val |
| IntArray | pntr |
| IntArray | indx |
| int | nz |
| int | dim [2] |
Incomplete Cholesky IC(0) (no fill - up) preconditioner for symmetric, positive definite matrices.
Definition at line 44 of file icprecond.h.
| oofem::CompCol_ICPreconditioner::CompCol_ICPreconditioner | ( | const SparseMtrx & | A, |
| InputRecord & | attributes ) |
Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix.
Definition at line 38 of file icprecond.C.
References oofem::Preconditioner::Preconditioner().
|
inline |
Constructor. The user should call initializeFrom and init services in this given order to ensure consistency.
Definition at line 57 of file icprecond.h.
References oofem::Preconditioner::Preconditioner().
|
inlinevirtual |
Destructor.
Definition at line 59 of file icprecond.h.
|
inlineoverridevirtual |
Returns the preconditioner name.
Reimplemented from oofem::Preconditioner.
Definition at line 68 of file icprecond.h.
|
protected |
Definition at line 123 of file icprecond.C.
References indx, pntr, and val.
Referenced by initialize().
|
protected |
Definition at line 156 of file icprecond.C.
References oofem::FloatArray::giveSize(), indx, pntr, val, and oofem::FloatArray::zero().
Referenced by solve(), and trans_solve().
|
overridevirtual |
Initializes the receiver (constructs the preconditioning matrix M) of given matrix. Virtual service, to be implemented by derived classes. Should be called after initializeFrom service.
| a | Sparse matrix to be preconditioned. |
Reimplemented from oofem::Preconditioner.
Definition at line 51 of file icprecond.C.
References initialize(), and OOFEM_ERROR.
| void oofem::CompCol_ICPreconditioner::initialize | ( | const CompCol & | A | ) |
Definition at line 64 of file icprecond.C.
References oofem::CompCol::col_ptr(), dim, oofem::SparseMtrx::giveNumberOfColumns(), oofem::SparseMtrx::giveNumberOfRows(), ICFactor(), indx, nz, OOFEM_ERROR, pntr, oofem::CompCol::row_ind(), val, and oofem::CompCol::values().
Referenced by init().
|
overridevirtual |
Initializes receiver from given record. Empty implementation.
Reimplemented from oofem::Preconditioner.
Definition at line 44 of file icprecond.C.
|
protected |
Definition at line 184 of file icprecond.C.
References qsortRow(), qsortRowPartition(), and val.
Referenced by qsortRow().
|
protected |
|
overridevirtual |
Solves the linear system.
| rhs | Right hand side. |
| solution | Solution. |
Implements oofem::Preconditioner.
Definition at line 107 of file icprecond.C.
References ICSolve().
|
overridevirtual |
Solves the transposed system.
| rhs | Right hand side. |
| solution | Solution. |
Implements oofem::Preconditioner.
Definition at line 115 of file icprecond.C.
References ICSolve().
|
private |
Definition at line 51 of file icprecond.h.
Referenced by initialize().
|
private |
Definition at line 49 of file icprecond.h.
Referenced by ICFactor(), ICSolve(), and initialize().
|
private |
Definition at line 50 of file icprecond.h.
Referenced by initialize().
|
private |
Definition at line 48 of file icprecond.h.
Referenced by ICFactor(), ICSolve(), and initialize().
|
private |
Definition at line 47 of file icprecond.h.
Referenced by ICFactor(), ICSolve(), initialize(), qsortRow(), and qsortRowPartition().