15 (cv::SOLVELP_UNBOUNDED,
"Unbound")
16 (cv::SOLVELP_UNFEASIBLE,
"Unfeasible")
17 (cv::SOLVELP_SINGLE,
"Single")
18 (cv::SOLVELP_MULTI,
"Multi");
28 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
34 vector<MxArray> rhs(prhs, prhs+nrhs);
37 Mat Func(rhs[0].toMat(rhs[0].isSingle() ? CV_32F : CV_64F)),
38 Constr(rhs[1].toMat(rhs[1].isSingle() ? CV_32F : CV_64F)),
40 int result = solveLP(Func, Constr, z);
43 plhs[1] =
MxArray(SolveLPResultInvMap[result]);
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/ouput arguments number check.
Global constant definitions.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
std::map wrapper with one-line initialization and lookup method.