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

Definition at line 205 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 206 of file Templates.hpp.

206  {
207 #ifndef NDDEBUG
208  if (data.size1() != 2)
210  "getFTensor1FromMat<2>: wrong size of data matrix, number of "
211  "rows should be 2 but is " +
212  boost::lexical_cast<std::string>(data.size1()));
213 #endif
214  return FTensor::Tensor1<FTensor::PackPtr<double *, S>, 2>(&data(0, 0),
215  &data(1, 0));
216  }

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