![]() |
deal.II version 9.7.1
|
#include <deal.II/lac/sparse_ilu.h>
This class computes an Incomplete LU (ILU) decomposition of a sparse matrix, using either the same sparsity pattern or a different one. By incomplete we mean that unlike the exact decomposition, the incomplete one is also computed using sparse factors, and entries in the decomposition that do not fit into the given sparsity structure are discarded.
The algorithm used by this class is essentially a copy of the algorithm given in the book Y. Saad: "Iterative methods for sparse linear systems", second edition, in section 10.3.2.
Refer to SparseLUDecomposition documentation for suggested usage and state management. This class is used in the step-22 tutorial program.
Definition at line 59 of file sparse_ilu.h.

Public Types | |
| using | size_type = typename SparseLUDecomposition<number>::size_type |
| using | AdditionalData = typename SparseLUDecomposition<number>::AdditionalData |
Public Member Functions | |
| SparseILU ()=default | |
| template<typename somenumber> | |
| void | initialize (const SparseMatrix< somenumber > &matrix, const AdditionalDataAdditionalData ¶meters=AdditionalDataAdditionalData()) |
| template<typename somenumber> | |
| void | vmult (Vector< somenumber > &dst, const Vector< somenumber > &src) const |
| template<typename somenumber> | |
| void | Tvmult (Vector< somenumber > &dst, const Vector< somenumber > &src) const |
| std::size_t | memory_consumption () const override |
Static Public Member Functions | |
| static ::ExceptionBase & | ExcInvalidStrengthening (double arg1) |
| static ::ExceptionBase & | ExcZeroPivot (size_type arg1) |
| using SparseILU< number >::size_type = typename SparseLUDecomposition<number>::size_type |
Declare type for container size.
Definition at line 65 of file sparse_ilu.h.
| using SparseILU< number >::AdditionalData = typename SparseLUDecomposition<number>::AdditionalData |
Make SparseLUDecomposition::AdditionalData accessible to this class as well.
Definition at line 79 of file sparse_ilu.h.
|
default |
Constructor. Does nothing.
Call the initialize function before using this object as preconditioner.
| template void SparseILU< number >::initialize< float > | ( | const SparseMatrix< somenumber > & | matrix, |
| const AdditionalDataAdditionalData & | parameters = AdditionalDataAdditionalData() ) |
Perform the incomplete LU factorization of the given matrix.
This function needs to be called before an object of this class is used as preconditioner.
For more details about possible parameters, see the class documentation of SparseLUDecomposition and the documentation of the SparseLUDecomposition::AdditionalData class.
According to the parameters, this function creates a new SparsityPattern or keeps the previous sparsity or takes the sparsity given by the user to data. Then, this function performs the LU decomposition.
After this function is called the preconditioner is ready to be used.
| template void SparseILU< number >::vmult< float > | ( | Vector< somenumber > & | dst, |
| const Vector< somenumber > & | src ) const |
Apply the incomplete decomposition, i.e. do one forward-backward step 
The initialize() function needs to be called before.
| template void SparseILU< number >::Tvmult< float > | ( | Vector< somenumber > & | dst, |
| const Vector< somenumber > & | src ) const |
Apply the transpose of the incomplete decomposition, i.e. do one forward-backward step 
The initialize() function needs to be called before.
|
override |
Determine an estimate for the memory consumption (in bytes) of this object.