v0.13.2
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MoFEM::GetFTensor2SymmetricFromMatImpl< 2, S, T, L, A > Struct Template Reference

#include <include/Templates.hpp>

Static Public Member Functions

static auto get (ublas::matrix< T, L, A > &data)
 

Detailed Description

template<int S, class T, class L, class A>
struct MoFEM::GetFTensor2SymmetricFromMatImpl< 2, S, T, L, A >

Definition at line 364 of file Templates.hpp.

Member Function Documentation

◆ get()

template<int S, class T , class L , class A >
static auto MoFEM::GetFTensor2SymmetricFromMatImpl< 2, S, T, L, A >::get ( ublas::matrix< T, L, A > &  data)
inlinestatic

Definition at line 365 of file Templates.hpp.

365 {
366#ifndef NDEBUG
367 if (data.size1() != 3)
369 "getFTensor2SymmetricFromMat<2>: wrong size of data matrix, numer "
370 "of rows should be 3 but is " +
371 boost::lexical_cast<std::string>(data.size1()));
372#endif
374 &data(0, 0), &data(1, 0), &data(2, 0));
375 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.
Definition: definitions.h:561

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