Dune-Fufem 2.11-git
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-FUFEM 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_FUFEM_BACKENDS_SINGLEROWCOLMATRIX_HH
8#define DUNE_FUFEM_BACKENDS_SINGLEROWCOLMATRIX_HH
9
10#ifndef DUNE_FUFEM_DISABLE_HEADER_DEPRECATION
11#warning This header is deprecated and will be removed after 2.11. Use corresponding header from dune-assembler instead.
12#endif
13
23#include <type_traits>
24#include <utility>
25
26#include <dune/assembler/backends/singlerowcolmatrix.hh>
27
28namespace Dune::Fufem {
29
30
31
64template<class Base>
65using SingleRowMatrix = Dune::Assembler::SingleRowMatrix<Base>;
66
99template<class Base>
100using SingleColumnMatrix = Dune::Assembler::SingleColumnMatrix<Base>;
101
102
103
104namespace Imp {
105
106constexpr std::false_type isSingleColumnMatrix(const void*)
107{ return {}; }
108
109template<class T>
110constexpr std::true_type isSingleColumnMatrix(const SingleColumnMatrix<T>*)
111{ return {}; }
112
113constexpr std::false_type isSingleRowMatrix(const void*)
114{ return {}; }
115
116template<class T>
117constexpr std::true_type isSingleRowMatrix(const SingleRowMatrix<T>*)
118{ return {}; }
119
120} // namespace Imp
121
122
123
129template<class T>
130struct
131[[deprecated("This class is deprecated and will be removed after 2.11. Use Dune::Assembler::IsSingleColumnMatrix instead.")]]
132IsSingleColumnMatrix : public decltype(Imp::isSingleColumnMatrix( std::declval<std::decay_t<T>*>()))
133{};
134
140template<class T>
141struct
142[[deprecated("This class is deprecated and will be removed after 2.11. Use Dune::Assembler::IsSingleRowMatrix instead.")]]
143IsSingleRowMatrix : public decltype(Imp::isSingleRowMatrix( std::declval<std::decay_t<T>*>()))
144{};
145
146
147
148} // namespace Dune::Fufem
149
150
151
152#endif // DUNE_FUFEM_BACKENDS_SINGLEROWCOLMATRIX_HH
Definition dunefunctionsboundaryfunctionalassembler.hh:29
Dune::Assembler::SingleColumnMatrix< Base > SingleColumnMatrix
Tag matrix as single column matrix.
Definition singlerowcolmatrix.hh:100
Dune::Assembler::SingleRowMatrix< Base > SingleRowMatrix
Tag matrix as single row matrix.
Definition singlerowcolmatrix.hh:65
Traits class to check if matrix is marked as single column matrix.
Definition singlerowcolmatrix.hh:133
Traits class to check if matrix is marked as single row matrix.
Definition singlerowcolmatrix.hh:144
T declval(T... args)