v0.16.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MoFEM::GetFTensor3DgFromMatImpl< 1, 1, S, DataLayoutTraits< DataLayout::CoeffsByGauss >, M > Struct Template Reference

#include "include/Templates.hpp"

Static Public Member Functions

static auto get (M &data, int rr=0, int cc=0)
 

Detailed Description

template<int S, class M>
struct MoFEM::GetFTensor3DgFromMatImpl< 1, 1, S, DataLayoutTraits< DataLayout::CoeffsByGauss >, M >

Definition at line 1121 of file Templates.hpp.

Member Function Documentation

◆ get()

template<int S, class M >
static auto MoFEM::GetFTensor3DgFromMatImpl< 1, 1, S, DataLayoutTraits< DataLayout::CoeffsByGauss >, M >::get ( M data,
int  rr = 0,
int  cc = 0 
)
inlinestatic

Definition at line 1123 of file Templates.hpp.

1123 {
1124 using T = std::remove_cv_t<std::remove_reference_t<decltype(data(0, 0))>>;
1125 constexpr int stride = S == -1 ? 1 : S;
1126
1127#ifndef NDEBUG
1128 constexpr int dg_size = 1;
1129 if (data.size1() != dg_size)
1131 "getFTensor3DgFromMat<1, 1>: wrong size of data matrix, number "
1132 "of rows should be 1 but is " +
1133 boost::lexical_cast<std::string>(data.size1()));
1134#endif
1136 &data(rr + 0, cc + 0)};
1137 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.

The documentation for this struct was generated from the following file: