Skip to content

Commit

Permalink
Merge pull request #33881 from ericcano/warning-fix-PixelTrackFitting…
Browse files Browse the repository at this point in the history
…-Eigen

Resolved uninitialized value warning in PixelTrackFitting
  • Loading branch information
cmsbuild authored Jun 2, 2021
2 parents 57abd4d + b23ba5a commit d03fb6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ namespace riemannFit {
// scale
const double tempQ = mc.squaredNorm();
const double tempS = sqrt(n * 1. / tempQ); // scaling factor
p3D *= tempS;
p3D.block(0, 0, 2, n) *= tempS;

// project on paraboloid
p3D.row(2) = p3D.block(0, 0, 2, n).colwise().squaredNorm();
Expand Down

0 comments on commit d03fb6a

Please sign in to comment.