16 #ifndef dealii_sparse_decomposition_h 17 #define dealii_sparse_decomposition_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/lac/sparse_matrix.h> 25 DEAL_II_NAMESPACE_OPEN
109 template <
typename number>
213 template <
typename somenumber>
248 template <
class OutVector,
class InVector>
250 vmult_add(OutVector &dst,
const InVector &src)
const;
259 template <
class OutVector,
class InVector>
261 Tvmult_add(OutVector &dst,
const InVector &src)
const;
280 <<
"The strengthening parameter " << arg1
281 <<
" is not greater or equal than zero!");
288 template <
typename somenumber>
349 template <
typename number>
353 const size_type )
const 355 return strengthen_diagonal;
360 template <
typename number>
368 template <
typename number>
376 template <
typename number>
387 template <
typename number>
388 template <
class OutVector,
class InVector>
391 const InVector &src)
const 395 this->vmult(tmp, src);
403 template <
typename number>
404 template <
class OutVector,
class InVector>
407 const InVector &src)
const 411 this->Tvmult(tmp, src);
418 template <
typename number>
420 const double strengthen_diag,
421 const unsigned int extra_off_diag,
422 const bool use_prev_sparsity,
424 : strengthen_diagonal(strengthen_diag)
425 , extra_off_diagonals(extra_off_diag)
426 , use_previous_sparsity(use_prev_sparsity)
427 , use_this_sparsity(use_this_spars)
433 DEAL_II_NAMESPACE_CLOSE
435 #endif // dealii_sparse_decomposition_h AdditionalData(const double strengthen_diagonal=0, const unsigned int extra_off_diagonals=0, const bool use_previous_sparsity=false, const SparsityPattern *use_this_sparsity=nullptr)
void vmult_add(OutVector &dst, const InVector &src) const
static ::ExceptionBase & ExcInvalidStrengthening(double arg1)
void copy_from(const SparseMatrix< somenumber > &matrix)
SparsityPattern * own_sparsity
bool use_previous_sparsity
double strengthen_diagonal
const SparsityPattern * use_this_sparsity
#define DeclException1(Exception1, type1, outsequence)
virtual void clear() override
typename SparseMatrix< number >::size_type size_type
virtual ~SparseLUDecomposition() override=0
std::vector< const size_type * > prebuilt_lower_bound
void Tvmult_add(OutVector &dst, const InVector &src) const
unsigned int extra_off_diagonals
types::global_dof_index size_type
virtual std::size_t memory_consumption() const
virtual void strengthen_diagonal_impl()
virtual number get_strengthen_diagonal(const number rowsum, const size_type row) const
double strengthen_diagonal
void initialize(const SparseMatrix< somenumber > &matrix, const AdditionalData parameters)
void prebuild_lower_bound()