6#ifndef DUNE_FUNCTIONS_COMMON_SQUEEZETENSOR_HH
7#define DUNE_FUNCTIONS_COMMON_SQUEEZETENSOR_HH
9#include <dune/common/fvector.hh>
10#include <dune/common/fmatrix.hh>
20 template<
class Object>
21 constexpr Object& squeezeTensor(Object& o){
29 template<
class Object>
30 constexpr Object
const& squeezeTensor(Object
const& o){
39 constexpr K
const& squeezeTensor(Dune::FieldVector<K,1>
const& v){
46 constexpr K& squeezeTensor(Dune::FieldVector<K,1>& v){
52 template<
class K,
int N>
53 constexpr Dune::FieldVector<K, N>
const& squeezeTensor(Dune::FieldMatrix<K,1,N>
const& m){
59 template<
class K,
int N>
60 constexpr Dune::FieldVector<K, N>& squeezeTensor(Dune::FieldMatrix<K,1,N>& m){
66 template<
class K,
int N,
int M>
67 constexpr Dune::FieldMatrix<K, N, M>
const& squeezeTensor(std::array<Dune::FieldMatrix<K,N,M>, 1>
const& m){
73 template<
class K,
int N,
int M>
74 constexpr Dune::FieldMatrix<K, N, M>& squeezeTensor(std::array<Dune::FieldMatrix<K,N,M>, 1>& m){
Definition monomialset.hh:19