New user self-registration is currently disabled. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Bug 1039 - redefining EIGEN_DEFAULT_DENSE_INDEX_TYPE leads to errors
redefining EIGEN_DEFAULT_DENSE_INDEX_TYPE leads to errors
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: Core - general
3.2
All All
: Normal Compilation Problem
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-13 00:04 UTC by Joshua Pritikin
Modified: 2015-07-13 14:16 UTC (History)
3 users (show)



Attachments

Description Joshua Pritikin 2015-07-13 00:04:18 UTC
Similar to bug 551, Eigen 3.2.5 fails to compile in Eigen/src/Core/Assign.h when checking pointer alignment. The fix could be something like,

https://github.com/yixuan/RcppEigen/commit/42e183ec3794f9fa04c9e16098d98ff2d7fbbd39

Although there might be smarter ways to check alignment. I hadn't thought exhaustively about the best way to do it.

Thanks.
Comment 1 Christoph Hertzberg 2015-07-13 14:16:46 UTC
Thanks for the report. Fixed in 3.2 and devel:
https://bitbucket.org/eigen/eigen/commits/f780358f
https://bitbucket.org/eigen/eigen/commits/1c09cef3

We should probably add some unit-tests with custom Index types, but since this is a "sail at own risk"-feature anyways, it's not too urgent.

Note You need to log in before you can comment on or make changes to this bug.