Reference documentation for deal.II version 9.3.3
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Static Public Attributes | Static Private Member Functions | List of all members
internal::AffineConstraints::IsBlockSparsityPattern< MatrixType > Struct Template Reference

#include <deal.II/lac/affine_constraints.h>

Static Public Attributes

static const bool value
 

Static Private Member Functions

template<typename T >
static std::true_type check (const BlockSparsityPatternBase< T > *)
 
static std::false_type check (...)
 

Detailed Description

template<typename MatrixType>
struct internal::AffineConstraints::IsBlockSparsityPattern< MatrixType >

A class that can be used to determine whether a given type is a block sparsity pattern type or not. In this, it matches the IsBlockMatrix class.

See also
Block (linear algebra)

Definition at line 2384 of file affine_constraints.h.

Member Function Documentation

◆ check() [1/2]

template<typename MatrixType >
template<typename T >
static std::true_type internal::AffineConstraints::IsBlockSparsityPattern< MatrixType >::check ( const BlockSparsityPatternBase< T > *  )
staticprivate

Overload returning true if the class is derived from BlockSparsityPatternBase, which is what block sparsity patterns do.

◆ check() [2/2]

template<typename MatrixType >
static std::false_type internal::AffineConstraints::IsBlockSparsityPattern< MatrixType >::check (   ...)
staticprivate

Catch all for all other potential types that are then apparently not block sparsity patterns.

Member Data Documentation

◆ value

template<typename MatrixType >
const bool internal::AffineConstraints::IsBlockSparsityPattern< MatrixType >::value
static
Initial value:
=
std::is_same<decltype(check(std::declval<MatrixType *>())),
std::true_type>::value

A statically computable value that indicates whether the template argument to this class is a block sparsity pattern (in fact whether the type is derived from BlockSparsityPatternBase<T>).

Definition at line 2408 of file affine_constraints.h.


The documentation for this struct was generated from the following file: