|
dune-istl 2.9.0
|
Loading...
Searching...
No Matches
umfpack.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
252 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
270 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
295 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
313 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
340 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
365 DUNE_THROW(Dune::ISTLError, "Size of right-hand-side vector b does not match the number of matrix rows!");
367 DUNE_THROW(Dune::ISTLError, "Size of solution vector x does not match the number of matrix columns!");
393 virtual void apply (domain_type& x, range_type& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
479 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<Matrix,std::set<std::size_t> >(_mat,rowIndexSet));
568 std::cout << "Wallclock Time taken: " << UMF_Decomposition_Info[UMFPACK_NUMERIC_WALLTIME] << " (CPU Time: " << UMF_Decomposition_Info[UMFPACK_NUMERIC_TIME] << ")" << std::endl;
570 std::cout << "Peak Memory Usage: " << UMF_Decomposition_Info[UMFPACK_PEAK_MEMORY]*UMF_Decomposition_Info[UMFPACK_SIZE_OF_UNIT] << " bytes" << std::endl;
571 std::cout << "Condition number estimate: " << 1./UMF_Decomposition_Info[UMFPACK_RCOND] << std::endl;
572 std::cout << "Numbers of non-zeroes in decomposition: L: " << UMF_Decomposition_Info[UMFPACK_LNZ] << " U: " << UMF_Decomposition_Info[UMFPACK_UNZ] << std::endl;
586 std::cout << "Wallclock Time: " << UMF_Info[UMFPACK_SOLVE_WALLTIME] << " (CPU Time: " << UMF_Info[UMFPACK_SOLVE_TIME] << ")" << std::endl;
615 template<class B> struct isValidBlock<B, std::enable_if_t<std::is_same<typename FieldTraits<B>::real_type,double>::value>> : std::true_type {};
#define DUNE_REGISTER_DIRECT_SOLVER(name,...)
Definition solverregistry.hh:13
Implementation of the BCRSMatrix class.
Templates characterizing the type of a solver.
Implementations of the inverse operator interface.
virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)
Apply inverse operator,.
Definition umfpack.hh:362
static void symbolic(size_type m, size_type n, const size_type *cs, const size_type *ri, const double *val, A... args)
Definition umfpack.hh:163
static void solve(size_type m, const size_type *cs, const size_type *ri, std::complex< double > *val, double *x, const double *b, A... args)
Definition umfpack.hh:157
virtual SolverCategory::Category category() const
Category of the solver (see SolverCategory::Category)
Definition umfpack.hh:236
static void numeric(const size_type *cs, const size_type *ri, const double *val, A... args)
Definition umfpack.hh:137
void setMatrix(const Matrix &matrix)
Initialize data from given matrix.
Definition umfpack.hh:448
static void report_info(A... args)
Definition umfpack.hh:142
UMFPack(const Matrix &mat_, const ParameterTree &config)
Construct a solver object from a matrix.
Definition umfpack.hh:286
static int load_numeric(A... args)
Definition umfpack.hh:132
static int load_numeric(A... args)
Definition umfpack.hh:74
static void report_status(A... args)
Definition umfpack.hh:89
UMFPack(const Matrix &mat_, const char *file, int verbose=0)
Try loading a decomposition from file and do a decomposition if unsuccessful.
Definition umfpack.hh:310
typename Impl::UMFPackVectorChooser< M >::range_type range_type
The type of the range of the solver.
Definition umfpack.hh:233
static void symbolic(A... args)
Definition umfpack.hh:104
static void report_info(A... args)
Definition umfpack.hh:84
static void free_symbolic(A... args)
Definition umfpack.hh:69
static int save_numeric(A... args)
Definition umfpack.hh:152
static void free_numeric(A... args)
Definition umfpack.hh:122
void setSubMatrix(const Matrix &_mat, const S &rowIndexSet)
Definition umfpack.hh:467
static int save_numeric(A... args)
Definition umfpack.hh:94
static void report_status(A... args)
Definition umfpack.hh:147
void apply(T *x, T *b)
additional apply method with c-arrays in analogy to superlu
Definition umfpack.hh:403
static void defaults(A... args)
Definition umfpack.hh:117
static void free_numeric(A... args)
Definition umfpack.hh:64
void setVerbosity(int v)
sets the verbosity level for the UMFPack solver
Definition umfpack.hh:491
UMFPack(const char *file, int verbose=0)
try loading a decomposition from file
Definition umfpack.hh:337
void saveDecomposition(const char *file)
saves a decomposition to a file
Definition umfpack.hh:440
UMFPackMatrix & getInternalMatrix()
Return the column compress matrix from UMFPack.
Definition umfpack.hh:516
SuiteSparse_long size_type
Definition umfpack.hh:114
typename Impl::UMFPackVectorChooser< M >::domain_type domain_type
The type of the domain of the solver.
Definition umfpack.hh:231
UMFPack(const Matrix &matrix, int verbose=0)
Construct a solver object from a matrix.
Definition umfpack.hh:249
ISTL::Impl::BCCSMatrixInitializer< M, size_type > MatrixInitializer
Type of an associated initializer class.
Definition umfpack.hh:229
virtual void apply(domain_type &x, range_type &b, double reduction, InverseOperatorResult &res)
apply inverse operator, with given convergence criteria.
Definition umfpack.hh:393
ISTL::Impl::BCCSMatrix< typename Matrix::field_type, size_type > UMFPackMatrix
The corresponding UMFPack matrix type.
Definition umfpack.hh:227
void setOption(unsigned int option, double value)
Set UMFPack-specific options.
Definition umfpack.hh:429
static void free_symbolic(A... args)
Definition umfpack.hh:127
static void defaults(A... args)
Definition umfpack.hh:59
UMFPack(const Matrix &matrix, int verbose, bool)
Constructor for compatibility with SuperLU standard constructor.
Definition umfpack.hh:267
void * getFactorization()
Return the matrix factorization.
Definition umfpack.hh:507
STL namespace.
static constexpr size_type M()
virtual void operator()()=0
#define DUNE_THROW(E, m)
Reference get(const RAPropertyMapHelper< Reference, PropertyMap > &pmap, const Key &key)
Definition matrixutils.hh:211
std::string get(const std::string &key, const std::string &defaultValue) const
Sequential overlapping Schwarz preconditioner.
Definition overlappingschwarz.hh:755
Definition overlappingschwarz.hh:694
Statistics about the application of an inverse operator.
Definition solver.hh:48
bool converged
True if convergence criterion has been met.
Definition solver.hh:73
@ sequential
Category for sequential solvers.
Definition solvercategory.hh:25
Definition solverregistry.hh:77
Definition solvertype.hh:16
Definition solvertype.hh:30
@ value
whether the solver internally uses column compressed storage
Definition solvertype.hh:36
Definition umfpack.hh:49
Definition umfpack.hh:613
Definition umfpack.hh:614
T endl(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8