Coder Social home page Coder Social logo

Comments (4)

titovmaxim avatar titovmaxim commented on May 20, 2024 1

I'm sure what aa.cpp is but it seems you have a mixture of wrappers: 'arma' is used inside you aa.cpp file and 'Eigen' wrapper is enabled by -D compiler option. Probably you should use then Eigen insted of 'arma' in your aa.cpp.

from optim.

lshok avatar lshok commented on May 20, 2024

Thx for the reply, Titovmaxim,
Indeed, my test main function used armadillo lib. The printed error message reflect this. However, I further commented all the code, except the include the "optim.hpp" file, it still could not pass the compiling. Maybe I should not include optim.hpp, but more specific header?

from optim.

titovmaxim avatar titovmaxim commented on May 20, 2024

I guess you have to define a correct macro to include a proper wrapper. Now you use -DOPTIM_ENABLE_EIGEN_WRAPPERS, which add an Eigen support to Optim library. Then in your code you use Armadilo, which leads to troubles.

I would suggest either to change compiler option to -DOPTIM_ENABLE_ARMA_WRAPPERS or just remove it at all and use #define OPTIM_ENABLE_ARMA_WRAPPERS prior to include optim.hpp.

from optim.

kthohr avatar kthohr commented on May 20, 2024

Don't mix Armadillo and Eigen.

from optim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.