Results 4 comments of Davide Carminati

Hi, I also have this problem. It seems that each time the optimization stops due to one of the parameters I set (e.g. iter_max), it gives "segmentation fault". Strangely enough,...

Sure. ```c++ #define OPTIM_ENABLE_EIGEN_WRAPPERS #include #include using namespace Eigen; inline double fun_optim(const Eigen::VectorXd& theta, Eigen::VectorXd* grad_out, void* opt_data) { MatrixXd K = MatrixXd::Random(4,4); double out = theta.transpose() * K *...

Thank you for trying my code. I am using CMake to build the code, I paste here the CMakeLists.txt: ```cmake cmake_minimum_required(VERSION 3.0.0) project(NLLoptim VERSION 0.1.0) add_compile_options(-std=c++17) add_compile_options( -DEIGEN_NO_DEBUG -msse -msse2...

I am sorry for replying this late. Now it works! I changed those compile options as you suggested and the segmentation fault is gone. Thank you very much.