|
dune-pdelab 2.10-git
|
Loading...
Searching...
No Matches
bcrsmatrixbackend.hh
Go to the documentation of this file.
74 typedef typename _build_bcrs_pattern_type<M,RowOrdering,ColOrdering,requires_pattern<M>::value>::type type;
86 template<typename OrderingV, typename OrderingU, typename Pattern, typename Container, typename StatsVector>
112 stats.push_back(typename StatsVector::value_type(nnz,longest_row,p.overflowCount(),p.entriesPerRow(),ordering_v.blockCount()));
126 // In contrast to the older implementation, this code still uses BCRSMatrix for nested matrices,
127 // but we do not attempt to keep the pattern of those interior matrices sparse and always allocate all
128 // blocks. That greatly simplifies the code, and as those interior matrices really shouldn't be very
130 // The code also collects statistics about the pattern of the leaf BCRSMatrices and collates those stats
135 template<typename OrderingV, typename OrderingU, typename Pattern, typename Container, typename StatsVector>
146 c.setSize(ordering_v.blockCount(),ordering_u.blockCount(),ordering_v.blockCount()*ordering_u.blockCount());
231 > pattern(grid_operator.testGridFunctionSpace().ordering(),grid_operator.trialGridFunctionSpace().ordering(),_entries_per_row);
static constexpr size_type M()
std::enable_if< std::is_base_of< impl::WrapperBase, T >::value, Native< T > & >::type native(T &t)
Definition backend/interface.hh:192
For backward compatibility – Do not use this!
Definition bcrsmatrix.hh:24
Backend using (possibly nested) ISTL BCRSMatrices.
Definition bcrsmatrixbackend.hh:188
PatternStatistics< size_type > Statistics
The type of the object holding the statistics generated during pattern construction.
Definition bcrsmatrixbackend.hh:194
BCRSMatrixBackend(const EntriesPerRow &entries_per_row)
Constructs a BCRSMatrixBackend.
Definition bcrsmatrixbackend.hh:249
std::vector< Statistics > buildPattern(const GridOperator &grid_operator, Matrix &matrix) const
Builds the matrix pattern associated with grid_operator and initializes matrix with it.
Definition bcrsmatrixbackend.hh:225
typename build_bcrs_pattern_type< typename Matrix::Container, GFSV, GFSU, typename GFSV::Ordering::ContainerAllocationTag >::type Pattern
The type of the pattern object passed to the GridOperator for pattern construction.
Definition bcrsmatrixbackend.hh:203
std::size_t size_type
The size type of the BCRSMatrix.
Definition bcrsmatrixbackend.hh:191
Definition bcrsmatrixbackend.hh:207
BCRSMatrix< typename VV::GridFunctionSpace, typename VU::GridFunctionSpace, typename build_matrix_type< E, typename VV::Container, typename VU::Container >::type, Statistics > type
Definition bcrsmatrixbackend.hh:217
Statistics about the pattern of a BCRSMatrix.
Definition patternstatistics.hh:14
GFSU TrialGridFunctionSpace
The trial grid function space.
Definition gridoperatorutilities.hh:37
GFSV TestGridFunctionSpace
The test grid function space.
Definition gridoperatorutilities.hh:40
const GFSU & trialGridFunctionSpace() const
Get the trial grid function space.
Definition gridoperator.hh:92
void fill_pattern(Pattern &p) const
Fill pattern of jacobian matrix.
Definition gridoperator.hh:168
const GFSV & testGridFunctionSpace() const
Get the test grid function space.
Definition gridoperator.hh:98
T max(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8