19 #include <boost/math/constants/constants.hpp>
25 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>
dMatrix;
26 typedef Eigen::Matrix<unsigned, Eigen::Dynamic, Eigen::Dynamic> uMatrix;
41 uMatrix elements(3,5);
43 NiHu::quad_1_elem::id, 0, 1, 4, 3,
44 NiHu::tria_1_elem::id, 1, 2, 5, 0,
45 NiHu::tria_1_elem::id, 1, 5, 4, 0;
55 using namespace boost::math::double_constants;
62 for (
unsigned i = 0; i < N; ++i)
64 double phi = i * (two_pi / N);
65 nodes(i,0) = R * cos(phi);
66 nodes(i,1) = R * sin(phi);
69 uMatrix elements(N,3);
70 for (
unsigned i = 0; i < N; ++i)
72 elements(i,0) = NiHu::line_1_elem::id;
74 elements(i,2) = (i+1)%N;
87 void mexFunction(
int nlhs, mxArray *lhs[],
int nrhs, mxArray
const *rhs[])