Skip to content

Commit

Permalink
Merge pull request #46 from fvalenza/Hotfix/MatrixInit
Browse files Browse the repository at this point in the history
[C++][Bug fixed] Changed from assignation to initialization...
  • Loading branch information
jcarpent committed Sep 30, 2015
2 parents 227a4cd + 8de9a25 commit 2bd39d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spatial/symmetric3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ namespace se3
Symmetric3Tpl Sres;

// 4 a
const Matrix32 & L = decomposeltI();
const Matrix32 L( decomposeltI() );

// Y = R' L ===> (12 m + 8 a)
const Matrix2 & Y = R.template block<2,3>(1,0) * L;
const Matrix2 Y( R.template block<2,3>(1,0) * L );

// Sres= Y R ===> (16 m + 8a)
Sres.data_(1) = Y(0,0)*R(0,0) + Y(0,1)*R(0,1);
Expand Down

0 comments on commit 2bd39d8

Please sign in to comment.