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

Definition at line 721 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 722 of file Templates.hpp.

722  {
723 #ifndef NDEBUG
724  if (data.size1() != 54)
726  "getFTensor3FromMat<3, 3, 6>: wrong size of data matrix, number "
727  "of rows should be 54 but is " +
728  boost::lexical_cast<std::string>(data.size1()));
729 #endif
730  std::array<double *, 54> ptrs;
731  for (auto i = 0; i != 54; ++i)
732  ptrs[i] = &data(i, 0);
733  return FTensor::Tensor3<FTensor::PackPtr<double *, S>, 3, 3, 6>(ptrs);
734  }

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::Tensor3
Definition: Tensor3_value.hpp:12
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27