yuki-koyama / mathtoolbox

Mathematical tools (interpolation, dimensionality reduction, optimization, etc.) written in C++11 with Eigen
https://yuki-koyama.github.io/mathtoolbox/
MIT License
257 stars 35 forks source link

Windows support #65

Open yuki-koyama opened 4 years ago

yuki-koyama commented 4 years ago

Currently, this library does not support Windows. I hope this issue will be resolved in the near future (but I don't have access to Windows and am not familiar with it).

boristim66 commented 2 years ago

Windows 10 / VisualStudio 2019. The project is assembled using CMake gui (3.16.4). Project is compiled and work fine, all yours tests was passed, but I only tested MDS in my code. Thank you.

boristim66 commented 2 years ago

The only comment that the compiler did not like the empty lambda-expressions in main.cpp in the projects bfgs-test, l-bfgs-test and gradient-descent-tests, I added the parameter "type" to the square brackets, like this:

setting.f = [type](const Eigen::VectorXd& x) { return otf::GetValue(x, type); }; setting.g = [type](const Eigen::VectorXd& x) { return otf::GetGrad(x, type); };