dune-functions 2.8.0
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#ifndef DUNE_FUNCTIONS_COMMON_DEFAULT_DERIVATIVE_TRAITS_HH
4#define DUNE_FUNCTIONS_COMMON_DEFAULT_DERIVATIVE_TRAITS_HH
5
6#include <type_traits>
7#include <utility>
8
11
12namespace Dune {
13namespace Functions {
14
15
16
23{};
24
25
35template<class Signature>
41
42
50template<>
51struct DefaultDerivativeTraits< double(double) >
52{
54 typedef double Range;
55};
56
66template<typename K, int n>
72
82template<typename K, int n, int m>
88
98template<typename K, int n, int m>
104
105
106}} // namespace Dune::Functions
107
108
109#endif // DUNE_FUNCTIONS_COMMON_DEFAULT_DERIVATIVE_TRAITS_HH
Dummy range class to be used if no proper type is available.
Definition defaultderivativetraits.hh:23
Default implementation for derivative traits.
Definition defaultderivativetraits.hh:37
InvalidRange Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:39
double Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:54
FieldVector< K, n > Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:70
FieldMatrix< K, m, n > Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:86
FieldMatrix< K, m, n > Range
Range of derivative for function with given signature.
Definition defaultderivativetraits.hh:102