v0.16.0
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 1445 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 1447 of file Templates.hpp.

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

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