Fix conversion warnings

This commit is contained in:
Simon Giraudot 2021-03-25 10:40:59 +01:00
parent ce76bf08f7
commit a4ac6061cf
2 changed files with 4 additions and 4 deletions

View File

@ -68,8 +68,8 @@ linear_least_squares_fitting_2(InputIterator first,
typename DiagonalizeTraits::Covariance_matrix covariance = {{ 0., 0., 0. }};
// assemble 2nd order moment about the origin.
FT temp[4] = {1/3.0, 0.25,
0.25, 1/3.0};
FT temp[4] = {FT(1/3.0), FT(0.25),
FT(0.25), FT(1/3.0)};
Matrix moment = init_matrix<FT>(2,temp);
for(InputIterator it = first;

View File

@ -68,8 +68,8 @@ linear_least_squares_fitting_2(InputIterator first,
typename DiagonalizeTraits::Covariance_matrix covariance = {{ 0., 0., 0. }};
// assemble the 2nd order moment about the origin.
FT temp[4] = {1/12.0, 1/24.0,
1/24.0, 1/12.0};
FT temp[4] = {FT(1/12.0), FT(1/24.0),
FT(1/24.0), FT(1/12.0)};
Matrix moment = init_matrix<FT>(2,temp);