v0.13.2
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
MoFEM::GetFTensor3FromMatImpl< 3, 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::GetFTensor3FromMatImpl< 3, 2, 2, S, T, ublas::row_major, A >

Definition at line 697 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 698 of file Templates.hpp.

698 {
699#ifndef NDEBUG
700 if (data.size1() != 12)
702 "getFTensor3FromMat<3, 2, 2>: wrong size of data matrix, number "
703 "of rows should be 12 but is " +
704 boost::lexical_cast<std::string>(data.size1()));
705#endif
707 &data(0, 0), &data(1, 0), &data(2, 0), &data(3, 0),
708 &data(4, 0), &data(5, 0), &data(6, 0), &data(7, 0),
709 &data(8, 0), &data(9, 0), &data(10, 0), &data(11, 0)};
710 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.
Definition: definitions.h:561

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