From bef22f63d0131e01d152b777d16420327df14cb0 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 3 May 2020 10:58:33 -0400 Subject: [PATCH] Avoid using fabs for std::complex --- tests/umfpack/umfpack_09_complex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/umfpack/umfpack_09_complex.cc b/tests/umfpack/umfpack_09_complex.cc index d7ed8028f2..1326b7fbc9 100644 --- a/tests/umfpack/umfpack_09_complex.cc +++ b/tests/umfpack/umfpack_09_complex.cc @@ -141,7 +141,7 @@ test() 1 + i + i * (j + 1) * (j + 1)); // imaginary part solution(j) *= - 1. * (j + j * (i + 1) * (i + 1)) / std::fabs(solution(j)); + 1. * (j + j * (i + 1) * (i + 1)) / std::abs(solution(j)); } // Then choose as rhs for the linear system the vector -- 2.39.5