aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/matrix_functions.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2016-05-22 18:17:04 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2016-05-22 18:17:04 +0200
commit718521d5cfab91f17c39e0160e617f9a93c15bf1 (patch)
tree5b96509e309ed6ea99256b0082acd4c2169abbf7 /unsupported/test/matrix_functions.h
parentb5a7603822825a5c065453434f1fbffdff8678a8 (diff)
Silenced several double-promotion warnings
Diffstat (limited to 'unsupported/test/matrix_functions.h')
-rw-r--r--unsupported/test/matrix_functions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/test/matrix_functions.h b/unsupported/test/matrix_functions.h
index 150b4c0c5..4e2636404 100644
--- a/unsupported/test/matrix_functions.h
+++ b/unsupported/test/matrix_functions.h
@@ -61,7 +61,7 @@ struct generateTestMatrix<MatrixType,1>
};
template <typename Derived, typename OtherDerived>
-double relerr(const MatrixBase<Derived>& A, const MatrixBase<OtherDerived>& B)
+typename Derived::RealScalar relerr(const MatrixBase<Derived>& A, const MatrixBase<OtherDerived>& B)
{
return std::sqrt((A - B).cwiseAbs2().sum() / (std::min)(A.cwiseAbs2().sum(), B.cwiseAbs2().sum()));
}