Comments (6)
Can confirm tip-of-HEAD Eigen works.
Looks like Eigen::all
was (is? will be?) introduced in Eigen 3.4:
Slicing and Indexing
This page presents the numerous possibilities offered by operator() to index sub-set of rows and columns. This API has been introduced in Eigen 3.4.
...
The symbolEigen::all
representing the whole set of respective rows or columns in increasing order.
Interestingly, the docs were committed 2018-11-09, and the change moving Eigen::placeholders::all
to Eigen::all
was committed 2018-09-15, so seems this has been baking for quite a while.
from optim.
Indeed this Error does not happen with a newer version of Eigen. (Issue happens with 3.3.7 but works with 3.4.99. Note that 3.3 is still the stable release and newer versions are only obtainable from Eigens source repo.)
from optim.
Looks like duplicate of #29. Which -D options do you you for compilation? Please check if Eigen is properly included from optim_options.hpp under #ifdef OPTIM_ENABLE_EIGEN_WRAPPERS. Are you sure you have Eigen sources nearby?
from optim.
I compile my code using the configure file with the option -l eigen
which leads to -D option being -DOPTIM_ENABLE_EIGEN_WRAPPERS
The path to Eigen library seems ok (I use Eigen in several other projects without trouble).
The includes in optim_options.hpp also seem fine.
from optim.
Quick update:
it looks like the root cause of the problem is in the unconstrained/nm.cpp file (which displays the error in the console)
I could compile the optim lib properly, using eigen, by removing it. As I do not need the Nelder-Mead algorithm I did not look any further in the issue, so it is more of a walk around than a solution.
The tutorial example works fine.
from optim.
My guess:
- you need to update your copy of Eigen,
- your include path for Eigen is not set correctly, and/or
- there is an issue with the compiler flags you are passing (which may or may not be related to the include path for Eigen).
I cannot replicate the error when using the latest version of Eigen.
from optim.
Related Issues (20)
- feature request: custom initialization of simplex for Nelder-Mead HOT 2
- 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
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.