7 #include "class_handle.hpp"
61 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
68 if (nrhs < 1 || mxGetString(prhs[0], cmd,
sizeof(cmd)))
70 mexErrMsgTxt(
"First input should be a command string less than 128 characters long.");
74 if (!strcmp(
"new", cmd))
78 mexErrMsgTxt(
"New: One output expected.");
80 plhs[0] = convertPtr2Mat<mextrsolver>(
new mextrsolver);
86 mexErrMsgTxt(
"Second input should be a class instance handle.");
89 if (!strcmp(
"delete", cmd))
92 destroyObject<mextrsolver>(prhs[1]);
94 if (nlhs != 0 || nrhs != 2)
95 mexWarnMsgTxt(
"Delete: Unexpected arguments ignored.");
100 mextrsolver *mextrsolver_instance = convertMat2Ptr<mextrsolver>(prhs[1]);
110 mextrsolver_instance->
init_sync(nlhs, plhs, nrhs, prhs);
113 mextrsolver_instance->
init_async(nlhs, plhs, nrhs, prhs);
131 mextrsolver_instance->
getsolution(nlhs, plhs, nrhs, prhs);
137 mextrsolver_instance->
printx();
140 mextrsolver_instance->
getN(nlhs, plhs, nrhs, prhs);
143 mextrsolver_instance->
getM(nlhs, plhs, nrhs, prhs);
146 mextrsolver_instance->
getJac(nlhs, plhs, nrhs, prhs);
149 mextrsolver_instance->
setecvs(nlhs, plhs, nrhs, prhs);
152 mextrsolver_instance->
getnodev(nlhs, plhs, nrhs, prhs);
155 mextrsolver_instance->
getvprobe(nlhs, plhs, nrhs, prhs);
158 mextrsolver_instance->
getiprobe(nlhs, plhs, nrhs, prhs);
161 mexErrMsgTxt(
"Unrecognised class command string.");
std::map< std::string, ClassMethods > s_mapClassMethodStrs
int stepsolve_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getiprobe(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int stepsolve_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void acceptstep_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int prepare_netlist(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getJac(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getnodev(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int getsolution(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void init_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void init_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void rejectstep_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getvprobe(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void acceptstep_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void setecvs(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int getM(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int getN(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])