dune-assembler 2.12
Loading...
Searching...
No Matches
singlerowcolmatrix.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
5// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
6
7#ifndef DUNE_ASSEMBLER_BACKENDS_SINGLEROWCOLMATRIX_HH
8#define DUNE_ASSEMBLER_BACKENDS_SINGLEROWCOLMATRIX_HH
9
10
11#include <type_traits>
12#include <utility>
13
15
16namespace Dune::Assembler {
17
18
19
50template <class Base>
52 : public Base
53{
54public:
55 using Base::Base;
56};
57
88template <class Base>
90 : public Base
91{
92public:
93 using Base::Base;
94};
95
96
97
101template <class M>
103 : public std::bool_constant<requires(M matrix) {
104 []<class T>(const Dune::Assembler::SingleColumnMatrix<T>&){} (matrix);
105}>{};
106
110template <class M>
112 : public std::bool_constant<requires(M matrix) {
113 []<class T>(const Dune::Assembler::SingleRowMatrix<T>&){} (matrix);
114}>{};
115
116
117} // namespace Dune::Assembler
118
119
120
121namespace Dune {
122
126template <class Base>
128 : public FieldTraits<Base>
129{};
130
134template <class Base>
136 : public FieldTraits<Base>
137{};
138
139} // namespace Dune
140
141
142
143#endif // DUNE_ASSEMBLER_BACKENDS_SINGLEROWCOLMATRIX_HH
Definition localboundaryintersectionmatrixassembler.hh:9
Tag matrix as single row matrix.
Definition singlerowcolmatrix.hh:53
Tag matrix as single column matrix.
Definition singlerowcolmatrix.hh:91
Traits class to check if matrix is marked as single column matrix.
Definition singlerowcolmatrix.hh:105
Traits class to check if matrix is marked as single row matrix.
Definition singlerowcolmatrix.hh:114