v0.14.0
Static Public Member Functions | List of all members
MoFEM::GetFTensor4FromMatImpl< 2, 2, 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::GetFTensor4FromMatImpl< 2, 2, 2, 2, S, T, ublas::row_major, A >

Definition at line 530 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 531 of file Templates.hpp.

531  {
532 #ifndef NDEBUG
533  if (data.size1() != 16) {
535  "getFTensor4FromMat<2, 2, 2, 2>: wrong size of data matrix, number "
536  "of rows should be 16 but is " +
537  boost::lexical_cast<std::string>(data.size1()));
538  }
539 #endif
541  &data(0, 0), &data(1, 0), &data(2, 0), &data(3, 0),
542  &data(4, 0), &data(5, 0), &data(6, 0), &data(7, 0),
543  &data(8, 0), &data(9, 0), &data(10, 0), &data(11, 0),
544  &data(12, 0), &data(13, 0), &data(14, 0), &data(15, 0)};
545  }

The documentation for this struct was generated from the following file:
THROW_MESSAGE
#define THROW_MESSAGE(msg)
Throw MoFEM exception.
Definition: definitions.h:561
FTensor::Tensor4
Definition: Tensor4_value.hpp:18