v0.15.5
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MoFEM::GetFTensor3DgFromMatImpl< 2, 2, S, T, ublas::row_major, A > Struct Template Reference

#include "include/Templates.hpp"

Static Public Member Functions

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

Detailed Description

template<int S, class T, class A>
struct MoFEM::GetFTensor3DgFromMatImpl< 2, 2, S, T, ublas::row_major, A >

Definition at line 469 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 470 of file Templates.hpp.

470 {
471#ifndef NDEBUG
472 if (data.size1() != 6) {
474 "getFTensor4DdgFromMat<2, 2>: wrong size of data matrix, number "
475 "of rows should be 6 but is " +
476 boost::lexical_cast<std::string>(data.size1()));
477 }
478#endif
480 &data(0, 0), &data(1, 0), &data(2, 0),
481 &data(3, 0), &data(4, 0), &data(5, 0)};
482 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.

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