Dune-Functions 2.12-git
Loading...
Searching...
No Matches
defaultderivativetraits.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_FUNCTIONS_COMMON_DEFAULT_DERIVATIVE_TRAITS_HH
8#define DUNE_FUNCTIONS_COMMON_DEFAULT_DERIVATIVE_TRAITS_HH
9
10#include <type_traits>
11#include <utility>
12
15
16namespace Dune {
17namespace Functions {
18
19
20
27{};
28
29
39template<class Signature>
45
46
54template<>
55struct DefaultDerivativeTraits< double(double) >
56{
58 typedef double Range;
59};
60
70template<typename K, int n>
76
86template<typename K, int n, int m>
92
102template<typename K, int n, int m>
108
109
110}} // namespace Dune::Functions
111
112
113#endif // DUNE_FUNCTIONS_COMMON_DEFAULT_DERIVATIVE_TRAITS_HH
Dummy range class to be used if no proper type is available.
Definition defaultderivativetraits.hh:27
Default implementation for derivative traits.
Definition defaultderivativetraits.hh:41
InvalidRange Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:43
double Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:58
FieldVector< K, n > Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:74
FieldMatrix< K, m, n > Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:90
FieldMatrix< K, m, n > Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:106