v0.16.3
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MoFEM::GetFTensor4DdgFromMatImpl< 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::GetFTensor4DdgFromMatImpl< 1, 1, S, DataLayoutTraits< DataLayout::CoeffsByGauss >, M >

Definition at line 1440 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 1442 of file Templates.hpp.

1442 {
1443 using T = std::remove_cv_t<std::remove_reference_t<decltype(data(0, 0))>>;
1444 constexpr int stride = S == -1 ? 1 : S;
1445#ifndef NDEBUG
1446 constexpr int ddg_size = 1;
1447 if (data.size1() != ddg_size)
1449 "getFTensor4DdgFromMat<1, 1>: wrong size of data matrix, number "
1450 "of rows should be 1 but is " +
1451 boost::lexical_cast<std::string>(data.size1()));
1452#endif
1454 &data(rr + 0, cc + 0)};
1455 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.

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