Skip to content
Snippets Groups Projects
Commit d1814e4d authored by Porrmann, Maik's avatar Porrmann, Maik
Browse files

add derivative.hh

parent 162aa2fa
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,14 @@ namespace Dune
using type = FieldMatrix<ST, m, n>;
};
template <typename S, typename T, int n>
struct DerivativeTraits<FieldVector<S, 1>(FieldVector<T, n>),
std::void_t<std::common_type_t<S, T>>>
{
using ST = std::common_type_t<S, T>;
using type = FieldVector<ST, n>;
};
// call `f.derivative(Domain)`
template <typename Domain, typename F,
decltype((std::declval<F>().derivative(std::declval<Domain>()), true)) = true>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment