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

Definition at line 455 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 456 of file Templates.hpp.

456 {
457#ifndef NDEBUG
458 if (data.size1() != 1)
460 "getFTensor3DgFromMat<1, 1>: wrong size of data matrix, number "
461 "of rows should be 1 but is " +
462 boost::lexical_cast<std::string>(data.size1()));
463#endif
464 return FTensor::Dg<FTensor::PackPtr<double *, S>, 1, 1>{&data(0, 0)};
465 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.

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