Comments (4)
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.
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.
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.
Don't mix Armadillo and Eigen.
from optim.
Related Issues (20)
- Eigen::all is now Eigen::placeholders::all HOT 1
- Build fail on msys2 HOT 1
- Cannot build Header Only HOT 1
- Getting error on MSVC - optim_options.hpp HOT 1
- Last step of GD leads to crash (eigen version) HOT 9
- Add basic example for Eigen HOT 1
- error configure header-only HOT 1
- Error in header-only-library HOT 1
- Error of example in the document HOT 1
- BaseMatrixOps is empty when installing header files only HOT 1
- how to input two nonlinear euqatoins.
- PSO center_particle HOT 6
- compilation probleme due to include path HOT 1
- Compile as a static library? HOT 2
- Error when compiling with RCpp: no match for call to function HOT 4
- After "./configure --header-only-version" the folder "header_only_version/BaseMatrixOps" is empty HOT 5
- Trouble using optim and mcmc in same project HOT 2
- print_level not printing error value HOT 1
- header-only-version does not work HOT 1
- Problem when installing : missing file BaseMatrixOps.hpp HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optim.