|
dune-istl 2.11
|
Iterative Solvers supporting block recursive matrix and vector classes at compile time. More...

Topics | |
| Iterative Solvers | |
| Communication Interface | |
| Sparse Matrix and Vector classes | |
| Matrix and Vector classes that support a block recursive structure capable of representing the natural structure from Finite Element discretisations. | |
Files | |
| file | ldl.hh |
| Class for using LDL with ISTL matrices. | |
| file | spqr.hh |
| Class for using SPQR with ISTL matrices. | |
| file | superlu.hh |
| Classes for using SuperLU with ISTL matrices. | |
| file | umfpack.hh |
| Classes for using UMFPack with ISTL matrices. | |
Namespaces | |
| namespace | Dune::UMFPackImpl |
Typedefs | |
| typedef Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::Matrix |
| The matrix type. | |
| typedef Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::matrix_type |
| typedef Dune::ISTL::Impl::BCCSMatrix< T, int > | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::LDLMatrix |
| The corresponding SuperLU Matrix type. | |
| typedef ISTL::Impl::BCCSMatrixInitializer< BCRSMatrix< FieldMatrix< T, n, m >, A >, int > | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::MatrixInitializer |
| Type of an associated initializer class. | |
| typedef Dune::BlockVector< FieldVector< T, m >, typename std::allocator_traits< A >::template rebind_alloc< FieldVector< T, m > > > | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::domain_type |
| The type of the domain of the solver. | |
| typedef Dune::BlockVector< FieldVector< T, n >, typename std::allocator_traits< A >::template rebind_alloc< FieldVector< T, n > > > | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::range_type |
| The type of the range of the solver. | |
| typedef Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::Matrix |
| The matrix type. | |
| typedef Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::matrix_type |
| typedef ISTL::Impl::BCCSMatrix< T, int > | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SPQRMatrix |
| The corresponding SuperLU Matrix type. | |
| typedef ISTL::Impl::BCCSMatrixInitializer< BCRSMatrix< FieldMatrix< T, n, m >, A >, int > | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::MatrixInitializer |
| Type of an associated initializer class. | |
| typedef Dune::BlockVector< FieldVector< T, m >, typename std::allocator_traits< A >::template rebind_alloc< FieldVector< T, m > > > | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::domain_type |
| The type of the domain of the solver. | |
| typedef Dune::BlockVector< FieldVector< T, n >, typename std::allocator_traits< A >::template rebind_alloc< FieldVector< T, n > > > | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::range_type |
| The type of the range of the solver. | |
| using | Dune::UMFPackMethodChooser< std::complex< double > >::size_type = SuiteSparse_long |
| using | Dune::UMFPack< M >::size_type = SuiteSparse_long |
| using | Dune::UMFPack< M >::Matrix = M |
| The matrix type. | |
| using | Dune::UMFPack< M >::matrix_type = M |
| using | Dune::UMFPack< M >::UMFPackMatrix = ISTL::Impl::BCCSMatrix<typename Matrix::field_type, size_type> |
| The corresponding (scalar) UMFPack matrix type. | |
| using | Dune::UMFPack< M >::MatrixInitializer = ISTL::Impl::BCCSMatrixInitializer<M, size_type> |
| Type of an associated initializer class. | |
| using | Dune::UMFPack< M >::domain_type = Impl::UMFPackDomainType<M> |
| The type of the domain of the solver. | |
| using | Dune::UMFPack< M >::range_type = Impl::UMFPackRangeType<M> |
| The type of the range of the solver. | |
Enumerations | |
| enum | { Dune::IsDirectSolver< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >::value = true } |
| enum | { Dune::StoresColumnCompressed< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >::value = true } |
| enum | { Dune::IsDirectSolver< SPQR< BCRSMatrix< T, A > > >::value = true } |
| enum | { Dune::StoresColumnCompressed< SPQR< BCRSMatrix< T, A > > >::value = true } |
| enum | { Dune::IsDirectSolver< UMFPack< M > >::value =true } |
| enum | { Dune::StoresColumnCompressed< UMFPack< BCRSMatrix< T, A > > >::value = true } |
Functions | |
| SolverCategory::Category | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::category () const override |
| Category of the solver (see SolverCategory::Category). | |
| Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::LDL (const Matrix &matrix, int verbose=0) | |
| Construct a solver object from a BCRSMatrix. | |
| Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::LDL (const Matrix &matrix, int verbose, bool) | |
| Constructor for compatibility with SuperLU standard constructor. | |
| Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::LDL (const Matrix &matrix, const ParameterTree &config) | |
| Constructs the LDL solver. | |
| Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::LDL () | |
| Default constructor. | |
| virtual | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::~LDL () |
| Default constructor. | |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::apply (domain_type &x, range_type &b, InverseOperatorResult &res) override |
| Apply inverse operator,. | |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::apply (domain_type &x, range_type &b, double reduction, InverseOperatorResult &res) override |
| apply inverse operator, with given convergence criteria. | |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::apply (T *x, T *b) |
| Additional apply method with c-arrays in analogy to superlu. | |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setOption (unsigned int option, double value) |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setMatrix (const Matrix &matrix) |
| Initialize data from given matrix. | |
| template<class S> | |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setSubMatrix (const Matrix &matrix, const S &rowIndexSet) |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setVerbosity (int v) |
| Sets the verbosity level for the solver. | |
| LDLMatrix & | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getInternalMatrix () |
| Return the column compress matrix. | |
| void | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::free () |
| Free allocated space. | |
| const char * | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::name () |
| Get method name. | |
| double * | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getD () |
| Get factorization diagonal matrix D. | |
| int * | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getLp () |
| Get factorization Lp. | |
| int * | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getLi () |
| Get factorization Li. | |
| double * | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getLx () |
| Get factorization Lx. | |
| Dune::DUNE_REGISTER_SOLVER ("ldl", [](auto opTraits, const auto &op, const Dune::ParameterTree &config) -> std::shared_ptr< typename decltype(opTraits)::solver_type > { using OpTraits=decltype(opTraits);using M=typename OpTraits::matrix_type;if constexpr(OpTraits::isParallel){ if(opTraits.getCommOrThrow(op).communicator().size() > 1) DUNE_THROW(Dune::InvalidStateException, "LDL works only for sequential operators.");} if constexpr(std::is_convertible_v< LDL< M > *, Dune::InverseOperator< typename OpTraits::domain_type, typename OpTraits::range_type > * > &&std::is_same_v< typename FieldTraits< M >::field_type, double >){ const auto &A=opTraits.getAssembledOpOrThrow(op);const M &mat=A->getmat();int verbose=config.get("verbose", 0);return std::make_shared< LDL< M > >(mat, verbose);} DUNE_THROW(UnsupportedType, "Unsupported Type in LDL (only FieldMatrix<double,...> supported)");}) | |
| SolverCategory::Category | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::category () const override |
| Category of the solver (see SolverCategory::Category). | |
| Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SPQR (const Matrix &matrix, int verbose=0) | |
| Construct a solver object from a BCRSMatrix. | |
| Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SPQR (const Matrix &matrix, int verbose, bool) | |
| Constructor for compatibility with SuperLU standard constructor. | |
| Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SPQR (const Matrix &matrix, const ParameterTree &config) | |
| Constructs the SPQR solver. | |
| Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SPQR () | |
| Default constructor. | |
| virtual | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::~SPQR () |
| Destructor. | |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::apply (domain_type &x, range_type &b, InverseOperatorResult &res) override |
| Apply inverse operator,. | |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::apply (domain_type &x, range_type &b, double reduction, InverseOperatorResult &res) override |
| apply inverse operator, with given convergence criteria. | |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setOption (unsigned int option, double value) |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setMatrix (const Matrix &matrix) |
| Initialize data from given matrix. | |
| template<class S> | |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setSubMatrix (const Matrix &matrix, const S &rowIndexSet) |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::setVerbosity (int v) |
| Sets the verbosity level for the solver. | |
| SuiteSparseQR_factorization< T > * | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getFactorization () |
| Return the matrix factorization. | |
| SPQRMatrix & | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::getInternalMatrix () |
| Return the column coppressed matrix. | |
| void | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::free () |
| Free allocated space. | |
| const char * | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::name () |
| Get method name. | |
| Dune::DUNE_REGISTER_SOLVER ("spqr", [](auto opTraits, const auto &op, const Dune::ParameterTree &config) -> std::shared_ptr< typename decltype(opTraits)::solver_type > { using OpTraits=decltype(opTraits);using M=typename OpTraits::matrix_type;if constexpr(OpTraits::isParallel){ if(opTraits.getCommOrThrow(op).communicator().size() > 1) DUNE_THROW(Dune::InvalidStateException, "SPQR works only for sequential operators.");} if constexpr(std::is_convertible_v< SPQR< M > *, Dune::InverseOperator< typename OpTraits::domain_type, typename OpTraits::range_type > * > &&std::is_same_v< typename FieldTraits< M >::field_type, double >){ const auto &A=opTraits.getAssembledOpOrThrow(op);const M &mat=A->getmat();int verbose=config.get("verbose", 0);return std::make_shared< Dune::SPQR< M > >(mat, verbose);} DUNE_THROW(UnsupportedType, "Unsupported Type in SPQR (only FieldMatrix<double,...> supported)");}) | |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::defaults (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::free_numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::free_symbolic (A... args) |
| template<typename... A> | |
| static int | Dune::UMFPackMethodChooser< double >::load_numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::report_info (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::report_status (A... args) |
| template<typename... A> | |
| static int | Dune::UMFPackMethodChooser< double >::save_numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::solve (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< double >::symbolic (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::defaults (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::free_numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::free_symbolic (A... args) |
| template<typename... A> | |
| static int | Dune::UMFPackMethodChooser< std::complex< double > >::load_numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::numeric (const size_type *cs, const size_type *ri, const double *val, A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::report_info (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::report_status (A... args) |
| template<typename... A> | |
| static int | Dune::UMFPackMethodChooser< std::complex< double > >::save_numeric (A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::solve (size_type m, const size_type *cs, const size_type *ri, std::complex< double > *val, double *x, const double *b, A... args) |
| template<typename... A> | |
| static void | Dune::UMFPackMethodChooser< std::complex< double > >::symbolic (size_type m, size_type n, const size_type *cs, const size_type *ri, const double *val, A... args) |
| SolverCategory::Category | Dune::UMFPack< M >::category () const override |
| Category of the solver (see SolverCategory::Category). | |
| Dune::UMFPack< M >::UMFPack (const Matrix &matrix, int verbose=0) | |
| Construct a solver object from a matrix. | |
| Dune::UMFPack< M >::UMFPack (const Matrix &matrix, int verbose, bool) | |
| Constructor for compatibility with SuperLU standard constructor. | |
| Dune::UMFPack< M >::UMFPack (const Matrix &mat_, const ParameterTree &config) | |
| Construct a solver object from a matrix. | |
| Dune::UMFPack< M >::UMFPack () | |
| default constructor | |
| Dune::UMFPack< M >::UMFPack (const Matrix &mat_, const char *file, int verbose=0) | |
| Try loading a decomposition from file and do a decomposition if unsuccessful. | |
| Dune::UMFPack< M >::UMFPack (const char *file, int verbose=0) | |
| try loading a decomposition from file | |
| virtual | Dune::UMFPack< M >::~UMFPack () |
| void | Dune::UMFPack< M >::apply (domain_type &x, range_type &b, InverseOperatorResult &res) override |
| Apply inverse operator,. | |
| void | Dune::UMFPack< M >::apply (domain_type &x, range_type &b, double reduction, InverseOperatorResult &res) override |
| apply inverse operator, with given convergence criteria. | |
| void | Dune::UMFPack< M >::apply (T *x, T *b) |
| additional apply method with c-arrays in analogy to superlu | |
| void | Dune::UMFPack< M >::setOption (unsigned int option, double value) |
| Set UMFPack-specific options. | |
| void | Dune::UMFPack< M >::saveDecomposition (const char *file) |
| saves a decomposition to a file | |
| template<class BitVector = Impl::NoBitVector> | |
| void | Dune::UMFPack< M >::setMatrix (const Matrix &matrix, const BitVector &bitVector={}) |
| Initialize data from given matrix. | |
| void | Dune::UMFPack< M >::setSubMatrix (const Matrix &_mat, const std::set< typename Matrix::size_type > &rowIndexSet) |
| void | Dune::UMFPack< M >::setVerbosity (int v) |
| sets the verbosity level for the UMFPack solver | |
| void * | Dune::UMFPack< M >::getFactorization () |
| Return the matrix factorization. | |
| UMFPackMatrix & | Dune::UMFPack< M >::getInternalMatrix () |
| Return the column compress matrix from UMFPack. | |
| void | Dune::UMFPack< M >::free () |
| free allocated space. | |
| const char * | Dune::UMFPack< M >::name () |
| Dune::DUNE_REGISTER_SOLVER ("umfpack", [](auto opTraits, const auto &op, const Dune::ParameterTree &config) -> std::shared_ptr< typename decltype(opTraits)::solver_type > { using OpTraits=decltype(opTraits);if constexpr(OpTraits::isParallel){ if(opTraits.getCommOrThrow(op).communicator().size() > 1) DUNE_THROW(Dune::InvalidStateException, "UMFPack works only for sequential operators.");} if constexpr(OpTraits::isAssembled){ using M=typename OpTraits::matrix_type;if constexpr(UMFPackImpl::isValidBlock< OpTraits >::value) { const auto &A=opTraits.getAssembledOpOrThrow(op);const M &mat=A->getmat();int verbose=config.get("verbose", 0);return std::make_shared< Dune::UMFPack< M > >(mat, verbose);} } DUNE_THROW(UnsupportedType, "Unsupported Type in UMFPack (only double and std::complex<double> supported)");return nullptr;}) | |
| template<class S> | |
| std::size_t | Dune::ILUSubdomainSolver< M, X, Y >::copyToLocalMatrix (const M &A, S &rowset) |
| Copy the local part of the global matrix to ILU. | |
| template<class S> | |
| void | Dune::ILU0SubdomainSolver< M, X, Y >::setSubMatrix (const M &A, S &rowset) |
| Set the data of the local problem. | |
| template<class S> | |
| void | Dune::ILUNSubdomainSolver< M, X, Y >::setSubMatrix (const M &A, S &rowset) |
| Set the data of the local problem. | |
| Dune::SuperLU< M >::~SuperLU () | |
| void | Dune::SuperLU< M >::free () |
| free allocated space. | |
| Dune::SuperLU< M >::SuperLU (const Matrix &matrix, bool verbose=false, bool reusevector=true) | |
| Constructs the SuperLU solver. | |
| Dune::SuperLU< M >::SuperLU () | |
| Empty default constructor. | |
| void | Dune::SuperLU< M >::setVerbosity (bool v) |
| void | Dune::SuperLU< M >::setMatrix (const Matrix &mat) |
| Initialize data from given matrix. | |
| template<class S> | |
| void | Dune::SuperLU< M >::setSubMatrix (const Matrix &mat, const S &rowIndexSet) |
| void | Dune::SuperLU< M >::apply (domain_type &x, range_type &b, InverseOperatorResult &res) override |
| Apply inverse operator,. | |
| void | Dune::SuperLU< M >::apply (T *x, T *b) |
| Apply SuperLu to C arrays. | |
Variables | |
| static constexpr bool | Dune::UMFPackMethodChooser< T >::valid = false |
| static constexpr bool | Dune::UMFPackMethodChooser< double >::valid = true |
| static constexpr bool | Dune::UMFPackMethodChooser< std::complex< double > >::valid = true |
Friends | |
| template<class M, class X, class TM, class TD, class T1> | |
| class | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SeqOverlappingSchwarz |
| struct | Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SeqOverlappingSchwarzAssemblerHelper< LDL< Matrix >, true > |
| template<class M, class X, class TM, class TD, class T1> | |
| class | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SeqOverlappingSchwarz |
| struct | Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SeqOverlappingSchwarzAssemblerHelper< SPQR< Matrix >, true > |
| template<class Mat, class X, class TM, class TD, class T1> | |
| class | Dune::UMFPack< M >::SeqOverlappingSchwarz |
| struct | Dune::UMFPack< M >::SeqOverlappingSchwarzAssemblerHelper< UMFPack< Matrix >, true > |
Iterative Solvers supporting block recursive matrix and vector classes at compile time.
The Iterative Solver Template Library applies generic programming in C++ to the domain of iterative solvers of linear systems stemming from finite element discretizations. Those discretizations exhibit a lot of structure, e.g:





Our matrix and vector interface supports a block recursive structure. Each sparse matrix entry can itself be either a sparse or a small dense matrix.
The solvers use this recursive block structure via template meta programming at compile time.
ISTL consists of the matrix and vector API and the solvers which use the Preconditioners preconditioners.
| typedef Dune::BlockVector<FieldVector<T,m>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > > Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::domain_type |
The type of the domain of the solver.
| typedef Dune::BlockVector<FieldVector<T,m>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > > Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::domain_type |
The type of the domain of the solver.
| using Dune::UMFPack< M >::domain_type = Impl::UMFPackDomainType<M> |
The type of the domain of the solver.
| typedef Dune::ISTL::Impl::BCCSMatrix<T,int> Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::LDLMatrix |
| typedef Dune::BCRSMatrix<FieldMatrix<T,n,m>,A> Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::Matrix |
The matrix type.
| typedef Dune::BCRSMatrix<FieldMatrix<T,n,m>,A> Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::Matrix |
The matrix type.
| using Dune::UMFPack< M >::Matrix = M |
The matrix type.
| typedef Dune::BCRSMatrix<FieldMatrix<T,n,m>,A> Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::matrix_type |
| typedef Dune::BCRSMatrix<FieldMatrix<T,n,m>,A> Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::matrix_type |
| using Dune::UMFPack< M >::matrix_type = M |
| typedef ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<FieldMatrix<T,n,m>,A>, int> Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::MatrixInitializer |
Type of an associated initializer class.
| typedef ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<FieldMatrix<T,n,m>,A>, int> Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::MatrixInitializer |
Type of an associated initializer class.
| using Dune::UMFPack< M >::MatrixInitializer = ISTL::Impl::BCCSMatrixInitializer<M, size_type> |
Type of an associated initializer class.
| typedef Dune::BlockVector<FieldVector<T,n>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > > Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >::range_type |
The type of the range of the solver.
| typedef Dune::BlockVector<FieldVector<T,n>, typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > > Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::range_type |
The type of the range of the solver.
| using Dune::UMFPack< M >::range_type = Impl::UMFPackRangeType<M> |
The type of the range of the solver.
| using Dune::UMFPack< M >::size_type = SuiteSparse_long |
| using Dune::UMFPackMethodChooser< std::complex< double > >::size_type = SuiteSparse_long |
| typedef ISTL::Impl::BCCSMatrix<T,int> Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >::SPQRMatrix |
| using Dune::UMFPack< M >::UMFPackMatrix = ISTL::Impl::BCCSMatrix<typename Matrix::field_type, size_type> |
The corresponding (scalar) UMFPack matrix type.
|
inlineoverride |
apply inverse operator, with given convergence criteria.
| x | The left hand side to store the result in. |
| b | The right hand side |
| reduction | The minimum defect reduction to achieve. |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
|
inlineoverride |
Apply inverse operator,.
| x | The left hand side to store the result in. |
| b | The right hand side |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
|
inline |
Additional apply method with c-arrays in analogy to superlu.
| x | solution array |
| b | rhs array |
|
inlineoverride |
apply inverse operator, with given convergence criteria.
| x | The left hand side to store the result in. |
| b | The right hand side |
| reduction | The minimum defect reduction to achieve. |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
|
inlineoverride |
Apply inverse operator,.
| x | The left hand side to store the result in. |
| b | The right hand side |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
|
override |
Apply inverse operator,.
| x | The left hand side to store the result in. |
| b | The right hand side |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
| void Dune::SuperLU< M >::apply | ( | T * | x, |
| T * | b ) |
Apply SuperLu to C arrays.
|
inlineoverride |
apply inverse operator, with given convergence criteria.
| x | The left hand side to store the result in. |
| b | The right hand side |
| reduction | The minimum defect reduction to achieve. |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
|
inlineoverride |
Apply inverse operator,.
| x | The left hand side to store the result in. |
| b | The right hand side |
| res | Object to store the statistics about applying the operator. |
| SolverAbort | When the solver detects a problem and cannot continue |
|
inline |
additional apply method with c-arrays in analogy to superlu
| x | solution array |
| b | rhs array |
NOTE If the user hands over a pure pointer, we assume that they know what they are doing, hence no copy to flat structures
|
inlineoverridevirtual |
Category of the solver (see SolverCategory::Category).
|
inlineoverridevirtual |
Category of the solver (see SolverCategory::Category).
|
inlineoverride |
Category of the solver (see SolverCategory::Category).
|
protected |
Copy the local part of the global matrix to ILU.
| A | The global matrix. |
| rowset | The global indices of the local problem. |
|
inlinestatic |
|
inlinestatic |
| Dune::DUNE_REGISTER_SOLVER | ( | "ldl" | , |
| [] (auto opTraits, const auto &op, const Dune::ParameterTree &config) -> std::shared_ptr< typename decltype(opTraits)::solver_type > { using OpTraits=decltype(opTraits);using M=typename OpTraits::matrix_type;if constexpr(OpTraits::isParallel){ if(opTraits.getCommOrThrow(op).communicator().size() > 1) DUNE_THROW(Dune::InvalidStateException, "LDL works only for sequential operators.");} if constexpr(std::is_convertible_v< LDL< M > *, Dune::InverseOperator< typename OpTraits::domain_type, typename OpTraits::range_type > * > &&std::is_same_v< typename FieldTraits< M >::field_type, double >){ const auto &A=opTraits.getAssembledOpOrThrow(op);const M &mat=A->getmat();int verbose=config.get("verbose", 0);return std::make_shared< LDL< M > >(mat, verbose);} DUNE_THROW(UnsupportedType, "Unsupported Type in LDL (only FieldMatrix<double,...> supported)");} | ) |
| Dune::DUNE_REGISTER_SOLVER | ( | "spqr" | , |
| [] (auto opTraits, const auto &op, const Dune::ParameterTree &config) -> std::shared_ptr< typename decltype(opTraits)::solver_type > { using OpTraits=decltype(opTraits);using M=typename OpTraits::matrix_type;if constexpr(OpTraits::isParallel){ if(opTraits.getCommOrThrow(op).communicator().size() > 1) DUNE_THROW(Dune::InvalidStateException, "SPQR works only for sequential operators.");} if constexpr(std::is_convertible_v< SPQR< M > *, Dune::InverseOperator< typename OpTraits::domain_type, typename OpTraits::range_type > * > &&std::is_same_v< typename FieldTraits< M >::field_type, double >){ const auto &A=opTraits.getAssembledOpOrThrow(op);const M &mat=A->getmat();int verbose=config.get("verbose", 0);return std::make_shared< Dune::SPQR< M > >(mat, verbose);} DUNE_THROW(UnsupportedType, "Unsupported Type in SPQR (only FieldMatrix<double,...> supported)");} | ) |
| Dune::DUNE_REGISTER_SOLVER | ( | "umfpack" | , |
| [] (auto opTraits, const auto &op, const Dune::ParameterTree &config) -> std::shared_ptr< typename decltype(opTraits)::solver_type > { using OpTraits=decltype(opTraits);if constexpr(OpTraits::isParallel){ if(opTraits.getCommOrThrow(op).communicator().size() > 1) DUNE_THROW(Dune::InvalidStateException, "UMFPack works only for sequential operators.");} if constexpr(OpTraits::isAssembled){ using M=typename OpTraits::matrix_type;if constexpr(UMFPackImpl::isValidBlock< OpTraits >::value) { const auto &A=opTraits.getAssembledOpOrThrow(op);const M &mat=A->getmat();int verbose=config.get("verbose", 0);return std::make_shared< Dune::UMFPack< M > >(mat, verbose);} } DUNE_THROW(UnsupportedType, "Unsupported Type in UMFPack (only double and std::complex<double> supported)");return nullptr;} | ) |
|
inline |
Free allocated space.
|
inline |
Free allocated space.
| void Dune::SuperLU< M >::free | ( | ) |
free allocated space.
|
inline |
free allocated space.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Get factorization diagonal matrix D.
|
inline |
Return the matrix factorization.
|
inline |
Return the matrix factorization.
|
inline |
Return the column compress matrix.
|
inline |
Return the column coppressed matrix.
|
inline |
Return the column compress matrix from UMFPack.
|
inline |
Get factorization Li.
|
inline |
Get factorization Lp.
|
inline |
Get factorization Lx.
|
inline |
Default constructor.
|
inline |
Constructs the LDL solver.
| matrix | The matrix of the system to solve. |
| config | ParameterTree containing solver parameters. |
| ParameterTree Key | Meaning |
|---|---|
| verbose | The verbosity level. default=0 |
|
inline |
Constructor for compatibility with SuperLU standard constructor.
This computes the matrix decomposition, and may take a long time (and use a lot of memory).
| matrix | the matrix to solve for |
| verbose | 0 or 1 set the verbosity level, defaults to 0 |
|
inline |
Construct a solver object from a BCRSMatrix.
This computes the matrix decomposition, and may take a long time (and use a lot of memory).
| matrix | the matrix to solve for |
| verbose | 0 or 1 set the verbosity level, defaults to 0 |
|
inlinestatic |
|
inlinestatic |
|
inline |
Get method name.
|
inline |
Get method name.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
saves a decomposition to a file
| file | the filename to save to |
|
inline |
Initialize data from given matrix.
|
inline |
Initialize data from given matrix.
| void Dune::SuperLU< M >::setMatrix | ( | const Matrix & | mat | ) |
Initialize data from given matrix.
|
inline |
Initialize data from given matrix.
| BitVector | a compatible bitvector to the domain_type/range_type. Defaults to NoBitVector for backwards compatibility |
A positive bit indices that the corresponding matrix row/column is excluded from the UMFPACK decomposition. WARNING This is an opposite behavior of the previous implementation in setSubMatrix.
|
inline |
|
inline |
|
inline |
Set UMFPack-specific options.
This method allows to set various options that control the UMFPack solver. More specifically, it allows to set values in the UMF_Control array. Please see the UMFPack documentation for a list of possible options and values.
| option | Entry in the UMF_Control array, e.g., UMFPACK_IRSTEP |
| value | Corresponding value |
| RangeError | If nonexisting option was requested |
| void Dune::ILU0SubdomainSolver< M, X, Y >::setSubMatrix | ( | const M & | A, |
| S & | rowset ) |
Set the data of the local problem.
| A | The global matrix. |
| rowset | The global indices of the local problem. |
| S | The type of the set with the indices. |
| void Dune::ILUNSubdomainSolver< M, X, Y >::setSubMatrix | ( | const M & | A, |
| S & | rowset ) |
Set the data of the local problem.
| A | The global matrix. |
| rowset | The global indices of the local problem. |
| S | The type of the set with the indices. |
|
inline |
|
inline |
| void Dune::SuperLU< M >::setSubMatrix | ( | const Matrix & | mat, |
| const S & | rowIndexSet ) |
|
inline |
|
inline |
Sets the verbosity level for the solver.
| v | verbosity level: 0 only error messages, 1 a bit of statistics. |
|
inline |
Sets the verbosity level for the solver.
| v | verbosity level: 0 only error messages, 1 a bit of statistics. |
| void Dune::SuperLU< M >::setVerbosity | ( | bool | v | ) |
|
inline |
sets the verbosity level for the UMFPack solver
| v | verbosity level The following levels are implemented: 0 - only error messages 1 - a bit of statistics on decomposition and solution 2 - lots of statistics on decomposition and solution |
|
inlinestatic |
|
inlinestatic |
|
inline |
Default constructor.
|
inline |
Constructs the SPQR solver.
| matrix | The matrix of the system to solve. |
| config | ParameterTree containing solver parameters. |
| ParameterTree Key | Meaning |
|---|---|
| verbose | The verbosity level. default=0 |
|
inline |
Constructor for compatibility with SuperLU standard constructor.
This computes the matrix decomposition, and may take a long time (and use a lot of memory).
| matrix | the matrix to solve for |
| verbose | 0 or 1, set the verbosity level, defaults to 0 |
|
inline |
Construct a solver object from a BCRSMatrix.
This computes the matrix decomposition, and may take a long time (and use a lot of memory).
| matrix | the matrix to solve for |
| verbose | 0 or 1, set the verbosity level, defaults to 0 |
| Dune::SuperLU< M >::SuperLU | ( | ) |
Empty default constructor.
Use setMatrix to tell SuperLU for what matrix it solves. Using this constructor no vectors will be reused.
|
explicit |
Constructs the SuperLU solver.
During the construction the matrix will be decomposed. That means that in each apply call forward and backward substitutions take place (and no decomposition).
| matrix | The matrix of the system to solve. |
| verbose | If true some statistics are printed. |
| reusevector | Default value is true. If true the two vectors are allocate in the first call to apply. These get resused in subsequent calls to apply and are deallocated in the destructor. If false these vectors are allocated at the beginning and deallocated at the end of each apply method. This allows using the same instance of superlu from different threads. |
|
inlinestatic |
|
inlinestatic |
|
inline |
default constructor
|
inline |
try loading a decomposition from file
| file | the decomposition file |
| verbose | the verbosity level |
| Dune::Exception | When not being able to load the file. Does not need knowledge of the actual matrix! |
|
inline |
Try loading a decomposition from file and do a decomposition if unsuccessful.
| mat_ | the matrix to decompose when no decoposition file found |
| file | the decomposition file |
| verbose | the verbosity level |
Use saveDecomposition(char* file) for manually storing a decomposition. This constructor will decompose mat_ and store the result to file if no file wasn't found in the first place. Thus, if you always use this you will only compute the decomposition once (and when you manually deleted the decomposition file).
|
inline |
Construct a solver object from a matrix.
| mat_ | the matrix to solve for |
| config | ParameterTree containing solver parameters. |
| ParameterTree Key | Meaning |
|---|---|
| verbose | The verbosity level. default=0 |
|
inline |
Constructor for compatibility with SuperLU standard constructor.
This computes the matrix decomposition, and may take a long time (and use a lot of memory).
| matrix | the matrix to solve for |
| verbose | [0..2] set the verbosity level, defaults to 0 |
|
inline |
Construct a solver object from a matrix.
This computes the matrix decomposition, and may take a long time (and use a lot of memory).
| matrix | the matrix to solve for |
| verbose | [0..2] set the verbosity level, defaults to 0 |
|
inlinevirtual |
Default constructor.
|
inlinevirtual |
Destructor.
| Dune::SuperLU< M >::~SuperLU | ( | ) |
|
inlinevirtual |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |