RcppCore / RcppEigen

Rcpp integration for the Eigen templated linear algebra library
Other
110 stars 40 forks source link

ArithmeticSequence.h not being pulled in by RcppEigen? #98

Closed zdebruine closed 3 years ago

zdebruine commented 3 years ago

Looks like RcppEigen isn't pulling Eigen/src/core/ArithmeticSequence.h.

Consistent with this issue, I'm not able to access Eigen::seq or related sequence functions.

See this question for details:

https://stackoverflow.com/questions/57083605/error-while-compiling-eigen-program-error-seq-is-not-a-member-of-eigen

eddelbuettel commented 3 years ago

In general wrapper packages do not automatically include every single header file. It would make compilation even slower than it is. (And there are added tools like https://include-what-you-use.org/ to trim includes if one wants that--it is a safer coding practice.)

Is anything stopping you from including that yourself just after #include <RcppEigen.h> ?

Also, and not to put to fine a point on it, that SO question has an issue with Eigen upstream and not RcppEigen. As such, did you maybe intent to file an issue with Eigen at their repo?

eddelbuettel commented 3 years ago

Also, there is a difference between the released Eigen versions 3.3. (of which we generally package the most recent one) and the development ones 3.4. which have been around "forever" but distinct from 3.3.*.

RcppEigen only gives you 3.3.* "for free". So I think I will close this as out of scope for us. Sorry.