Conversation
Signed-off-by: Louise Poubel <louise@openrobotics.org>
…-math7 Signed-off-by: Louise Poubel <louise@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## ign-math6 #455 +/- ##
=============================================
+ Coverage 99.65% 99.66% +0.01%
=============================================
Files 67 68 +1
Lines 6400 6614 +214
=============================================
+ Hits 6378 6592 +214
Misses 22 22
Continue to review full report at Codecov.
|
scpeters
left a comment
There was a problem hiding this comment.
I've made a few minor comments, aside from thinking that the multiplication operator would be better off with for loops, since it's so long.
Also, what do you think about adding a SetSubMatrix(Matrix6Corner, Matrix3) method?
| this->data[5][2] * _m2(2, 5) + | ||
| this->data[5][3] * _m2(3, 5) + | ||
| this->data[5][4] * _m2(4, 5) + | ||
| this->data[5][5] * _m2(5, 5)); |
There was a problem hiding this comment.
there may be a performance advantage to manually unrolling the loops, but this is a bit too much; I'd rather just have two for loops here
There was a problem hiding this comment.
I was trying to keep the diff to Matrix4 as little as possible, so I followed the pattern there. But I agree with you that this is very error-prone. See efb0f0d for a more compact implementation which doesn't require allocating the matrix with zeroes and then changing each element one by one.
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Good idea, this will probably be useful. Added in efb0f0d |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
scpeters
left a comment
There was a problem hiding this comment.
LGTM with clean CI (there are a few lines over 80 characters)
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
🎉 New feature
Summary
Add a new
Matrix6class to be used to store added mass (see gazebosim/gz-sim#1462).The class is an extension of the existing
Matrix4class, with these differences:Matrix4onmain:DeterminantandInverseSubmatrixfunction, as requested in Add MatrixX class #442 (comment)main, by usingGZ_header guards, removing redundantignition::math::namespaces, etc.Test it
Run the added tests.
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸