Skip to content

Commit

Permalink
Fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
unclearness committed Oct 2, 2023
1 parent 4f08362 commit 8088fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ugu/util/math_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ struct Pca {

if (unbiased_variance) {
// unbiased variance
coeffs /= static_cast<InputMatrixType::Scalar>(c - 1);
coeffs /= static_cast<typename InputMatrixType::Scalar>(c - 1);
} else {
// sample variance
coeffs /= static_cast<InputMatrixType::Scalar>(c);
coeffs /= static_cast<typename InputMatrixType::Scalar>(c);
}

vecs = svd.matrixU();
Expand Down

0 comments on commit 8088fbb

Please sign in to comment.