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

Definition at line 819 of file Templates.hpp.

Member Function Documentation

◆ get()

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

Definition at line 820 of file Templates.hpp.

820 {
821#ifndef NDEBUG
822 if (data.size1() != 54)
824 "getFTensor3FromMat<6, 3, 3>: wrong size of data matrix, number "
825 "of rows should be 54 but is " +
826 boost::lexical_cast<std::string>(data.size1()));
827#endif
828 std::array<double *, 54> ptrs;
829 for (auto i = 0; i != 54; ++i)
830 ptrs[i] = &data(i, 0);
832 }
#define THROW_MESSAGE(msg)
Throw MoFEM exception.
Definition: definitions.h:561
FTensor::Index< 'i', SPACE_DIM > i

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