kthohr / optim

OptimLib: a lightweight C++ library of numerical optimization methods for nonlinear functions

Home Page:https://optimlib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble using optim and mcmc in same project

magnoliasci opened this issue · comments

I run into problems when I try to include optim.h and mcmc.h in the same cpp file. I think it's happening because the #include guards in BaseMatrixOps.hpp prevent the inclusion of that code into the mcmc namespace isn mcmc_options.h. Is there a way to fix this, short of refactoring a bunch of the library code?

This sounds like poor design on my part :) I'll come up with a fix. Thanks for flagging

Just pushed updates to all packages. Let me know if that doesn't fix it...