-
Notifications
You must be signed in to change notification settings - Fork 67
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
Implement the MatrixView class #734
Merged
traversaro
merged 17 commits into
robotology:devel
from
GiulioRomualdi:feature/add_matrix_view
Sep 10, 2020
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
28306d7
Implement MatrixView class
GiulioRomualdi abd7f9d
Add MatrixView to the set of the headers in the core CMakeLists file
GiulioRomualdi de39dbd
Implement MatrixDynSize assignement operator for MatrixView objects
GiulioRomualdi 17ae047
Add typedef in MatrixDynSize and MatrixFixSize to make them compatibl…
GiulioRomualdi e4b9ace
Extend the MatrixDynSize test with the MatrixView class
GiulioRomualdi 9038b94
Implement the toEigen method for the MatrixView class
GiulioRomualdi 2813702
Extend the EigenHelpersUnitTest with tests related to MatrixView
GiulioRomualdi abc9e97
Implement unit tests for MatrixView class
GiulioRomualdi 44694c9
Enable the compilation of the MatrixViewUnitTest
GiulioRomualdi c173e11
Fix typos in EigenHelpers.h
GiulioRomualdi d766d55
Introduce the MatrixViewInternal namespace to avoid possible name col…
GiulioRomualdi 67f2589
Use std::ptrdiff_t instead of unsigned int as index type in MatrixVie…
GiulioRomualdi c4fe388
Add a test for checking the possible errors when a ColMajor MatrixVie…
GiulioRomualdi ab3af17
Fix style in EigenHelpers.h file
GiulioRomualdi 7bcf16f
Add a comment describing the trick used to build an Eigen::Map from a…
GiulioRomualdi f07abf2
Update CHANGELOG.md
GiulioRomualdi 5ebd210
Merge branch 'devel' into feature/add_matrix_view
GiulioRomualdi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read here that it is not always safe to use ternary operators with Eigen expressions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my bad, here mat is a MatrixView type!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it is not safe when an Eigen type is on the left side. In this case should be fine as only
int
are involved.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, understood.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the operator is called on
int
so it shouldn't be a problem, please correct me if I'm mistaken.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops I missed the message