clipper
clipper copied to clipboard
Error building MATLAB Bindings
Hello,
I'm trying to compile the MATLAB binaries on Ubuntu 22.04 and I get the following errors:
clipper/bindings/matlab/finddensecluster_mex.cpp:65:37: error: ‘clipper::utils’ has not been declared
65 | if (u0.size() == 0) u0 = clipper::utils::randvec(m);
| ^~~~~
clipper/bindings/matlab/finddensecluster_mex.cpp:74:21: error: ‘findDenseCluster’ is not a member of ‘clipper’
74 | soln = clipper::findDenseCluster(Ms, Cs, u0, params);
| ^~~~~~~~~~~~~~~~
clipper/bindings/matlab/finddensecluster_mex.cpp:76:21: error: ‘findDenseCluster’ is not a member of ‘clipper’
76 | soln = clipper::findDenseCluster(M, C, u0, params);
| ^~~~~~~~~~~~~~~~
On inspection, it seems findDenseCluster is not a declared function in the C++ code. Am I missing something? How did you compile the MATLAB binaries?
Hi, unfortunately the matlab bindings have become out of sync with the c++ implementation because of a variety of efficiency improvements. It is certainly possible to update them, but would take some effort.
The Python bindings are up to date, however.