Loading [MathJax]/extensions/tex2jax.js
31 void mexFunction(
int nlhs, mxArray *lhs[],
int nrhs, mxArray
const *rhs[])
33 mexPrintf(
"%d \n", NiHu::line_1_elem::id);
34 dMatrix nodes(rhs[0]), elem(rhs[1]);
38 kernel_t::field_variance_t var =
dMatrix(rhs[2]);
39 double d = NiHu::mex::get_scalar<double>(rhs[3]);
43 size_t N = w.get_num_dofs();
44 mexPrintf(
"Number of DOFs: %d\n", N);
46 dMatrix D(N, N, lhs[0]), B(N, N, lhs[1]);
49 mexPrintf(
"Matrices initialised\n");
51 mexPrintf(
"D matrix ready\n");
53 mexPrintf(
"B matrix ready\n");
integral_operator< Kernel > create_integral_operator(Kernel &&kernel)
factory function of an integral operator
Implementation of kernels representing covariance functions of stochastic processes.
mesh< tmp::vector< typename tag2type< Args >::type... > > create_mesh(nodes_t const &nodes, elements_t const &elements, Args...)
factory function to create a mesh from nodes and elements matrices
Metafunction assigning a tag to a type.
const function_space_view< Mesh, field_option::constant, Dimension > & constant_view(mesh_base< Mesh > const &msh, Dimension dim=Dimension())
factory function to transform a mesh into a constant function space
declaration of class NiHu::weighted_residual
A Matlab mex matrix interface.
The identity integral operator .