-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShonanAveraging compile error? #689
Comments
Hmmm, this should be possible, and this compiles fine on my Mac. It also survived 23 CI runs. BTW, @jingwuOUO, I hope we're sure here that we do not create a very large dense matrix, right? I think Eigen does the right thing with expression templates, but we better be sure :-) @ToniRV, the expression templates might also be the issue for compilation. No good idea what to do here except try a different expression template: try
? |
Ah, cleaning and re-building solves the issue... |
Cleaning and re-building resets the Eigen used to the one bundled in GTSAM (3.3.7)... but when using my system-wide Eigen (3.2.92) it breaks with:
I think this could be avoided without the user having to update Eigen? |
Ah. How could it be avoided? Did you try the other order I suggested? |
The change of order didn't work. It seems more like an incompatibility between Dense and Sparse matrices... |
Ok, as trivial as it may sound, I had to tell Eigen that the identity matrix is sparse 😄 |
Nice! |
#690 it works! |
@ToniRV This kind of fix doesn't seem to cover all scenarios. When the eigen library globally defines EIGEN_DEFAULT_TO_ROW_MAJOR will compile error "error: ambiguous partial specializations of 'cwie_promote_storage_order<Eigen::Sparse, Eigen::Sparse, 1 , 0>'" |
Sorry for the badly formatted issue.
I think I got an error on the ShonanAveraging.cpp side
That's probably from Frank's latest paper?
Removing all Shonan* files makes gtsam compile just fine. @dellaert
Using Ubuntu 16.04 🤷♂️ if that helps
The text was updated successfully, but these errors were encountered: