Skip to content
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

Remove special handling for Vector and Matrix #165

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

varunagrawal
Copy link
Collaborator

Remove the various checks in type.py for special handling of gtsam::Vector and gtsam::Matrix.

As detailed in #164 this helps alleviate issues when it comes to wrapping Eigen types in template definitions (e.g. std::vector<Matrix>), but puts the onus on the developer to add the appropriate namespaces.

I personally believe having the developer specify the namespace and whether it is a reference type helps with clarity and makes debugging easier.

The changes here have been tested out on GTSAM and they work without any issues.

@varunagrawal varunagrawal requested a review from ProfFan March 6, 2024 21:05
@varunagrawal varunagrawal self-assigned this Mar 6, 2024
@varunagrawal varunagrawal linked an issue Mar 6, 2024 that may be closed by this pull request
@varunagrawal
Copy link
Collaborator Author

I'm merging this because there is no API breakage and there are obvious benefits.

@varunagrawal varunagrawal merged commit 16934a9 into master Mar 7, 2024
8 checks passed
@varunagrawal varunagrawal deleted the remove-matrix-assumptions branch March 7, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should we drop special treatment for Vector and Matrix?
1 participant