aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/matrix_exponential.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported/test/matrix_exponential.cpp')
-rw-r--r--unsupported/test/matrix_exponential.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/test/matrix_exponential.cpp b/unsupported/test/matrix_exponential.cpp
index 5ea438c2a..996b42a7f 100644
--- a/unsupported/test/matrix_exponential.cpp
+++ b/unsupported/test/matrix_exponential.cpp
@@ -36,7 +36,7 @@ double binom(int n, int k)
template <typename Derived, typename OtherDerived>
double relerr(const MatrixBase<Derived>& A, const MatrixBase<OtherDerived>& B)
{
- return std::sqrt((A - B).cwiseAbs2().sum() / std::min(A.cwiseAbs2().sum(), B.cwiseAbs2().sum()));
+ return std::sqrt((A - B).cwiseAbs2().sum() / (std::min)(A.cwiseAbs2().sum(), B.cwiseAbs2().sum()));
}
template <typename T>