#include <include/Templates.hpp>
|
static auto | get (ublas::matrix< T, L, A > &data) |
|
template<int Tensor_Dim1, int Tensor_Dim2, int S, class T, class L, class A>
struct MoFEM::GetFTensor2FromMatImpl< Tensor_Dim1, Tensor_Dim2, S, T, L, A >
Definition at line 252 of file Templates.hpp.
◆ get()
template<int Tensor_Dim1, int Tensor_Dim2, int S, class T , class L , class A >
Definition at line 253 of file Templates.hpp.
255 if (data.size1() != Tensor_Dim1 * Tensor_Dim2) {
257 "getFTensor2FromMat<" +
258 boost::lexical_cast<std::string>(Tensor_Dim1) +
"," +
259 boost::lexical_cast<std::string>(Tensor_Dim2) +
260 ">: wrong size of rows in data matrix, should be " +
261 boost::lexical_cast<std::string>(Tensor_Dim1 * Tensor_Dim2) +
262 " but is " + boost::lexical_cast<std::string>(data.size1()));
265 std::array<double *, Tensor_Dim1 * Tensor_Dim2> ptrs;
266 for (
auto i = 0;
i != Tensor_Dim1 * Tensor_Dim2; ++
i)
267 ptrs[
i] = &data(
i, 0);
The documentation for this struct was generated from the following file: