version 3.10-dev
matrix.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_TYPETRAITS_MATRIX_HH
13#define DUMUX_TYPETRAITS_MATRIX_HH
14
15#include <type_traits>
16
17// Forward declare to avoid includes
18namespace Dune {
19template <class Block, class Allocator>
21
22template <class FirstRow, class ... Args>
24} // end namespace Dune
25
26namespace Dumux {
27
29template<class T>
30struct isBCRSMatrix : public std::false_type {};
31
32template<class B, class A>
33struct isBCRSMatrix<Dune::BCRSMatrix<B, A>> : public std::true_type {};
34
36template<class... Args>
37struct isMultiTypeBlockMatrix : public std::false_type {};
38
39template<class... Args>
40struct isMultiTypeBlockMatrix<Dune::MultiTypeBlockMatrix<Args...>> : public std::true_type {};
41
42} // end namespace Dumux
43
44#endif
Definition: matrix.hh:20
Definition: common/pdesolver.hh:26
Definition: adapt.hh:17
Definition: common/pdesolver.hh:24
Helper type to determine whether a given type is a Dune::BCRSMatrix.
Definition: matrix.hh:30
Helper type to determine whether a given type is a Dune::MultiTypeBlockMatrix.
Definition: matrix.hh:37