21 #include "library/helmholtz_3d.hpp"
30 void mexFunction(
int nlhs, mxArray *lhs[],
int nrhs, mxArray
const *rhs[])
34 dMatrix surf_nodes(rhs[0]), surf_elem(rhs[1]), field_nodes(rhs[2]), field_elem(rhs[3]);
41 auto const &dirac_f =
NiHu::dirac(NiHu::constant_view(field_mesh));
42 auto const &dirac_s =
NiHu::dirac(NiHu::constant_view(surf_mesh));
46 double wave_number = NiHu::mex::get_scalar<double>(rhs[4]);
51 cMatrix Z_trans(dirac_f.get_num_dofs(), w.get_num_dofs(), lhs[0]);
52 cMatrix Z_rad(dirac_s.get_num_dofs(), w.get_num_dofs(), lhs[1]);
56 Z_trans << (dirac_f * G[w]);
57 Z_rad << (dirac_s * G[w]);