Fix precision of Eigen diagonalize traits

This commit is contained in:
Simon Giraudot 2020-10-28 08:51:09 +01:00
parent 6b98751311
commit f440031f5c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ private:
{
for(std::size_t j=i; j<dim; ++j)
{
m(i,j) = static_cast<float>(cov[(dim * i) + j - ((i * (i+1)) / 2)]);
m(i,j) = static_cast<FT>(cov[(dim * i) + j - ((i * (i+1)) / 2)]);
if(i != j)
m(j,i) = m(i,j);