24 typedef NiHu::field_dimension::_2d field_dim_t;
25 static const unsigned int field_dim = field_dim_t::value;
27 static const unsigned int space_dim = space_t::dimension;
31 typedef Eigen::Matrix<double, field_dim, field_dim> field_var_t;
32 typedef Eigen::Matrix<double, space_dim, space_dim> space_var_t;
37 void mexFunction(
int nlhs, mxArray *lhs[],
int nrhs, mxArray
const *rhs[])
39 dMatrix nodes(rhs[0]), elem(rhs[1]);
44 field_var_t field_var =
dMatrix(rhs[2]);
45 space_var_t space_var =
dMatrix(rhs[3]);
46 kernel_t kernel(field_var, space_var);
50 size_t N = w.get_num_dofs();
51 mexPrintf(
"Number of DOFs: %d\n", N);
53 dMatrix D(N, N, lhs[0]), B(N, N, lhs[1]);
56 mexPrintf(
"Matrices initialised\n");
58 mexPrintf(
"D matrix ready\n");
60 mexPrintf(
"B matrix ready\n");