From 694304312224e18ce4e8d68d6b4af071338d2567 Mon Sep 17 00:00:00 2001 From: Ouadie EL FAROUKI Date: Mon, 11 Sep 2023 16:38:05 +0100 Subject: [PATCH] Typo fix --- common/include/common/float_comparison.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/include/common/float_comparison.hpp b/common/include/common/float_comparison.hpp index e244f0d5a..1222ccc41 100644 --- a/common/include/common/float_comparison.hpp +++ b/common/include/common/float_comparison.hpp @@ -71,12 +71,12 @@ scalar_t abs(scalar_t value) noexcept { #ifdef BLAS_ENABLE_COMPLEX template bool isnan(std::complex value) noexcept { - return (isnan(value.imag()) || isnan(value.imag())); + return (isnan(value.real()) || isnan(value.imag())); } template bool isinf(std::complex value) noexcept { - return (isinf(value.imag()) || isinf(value.imag())); + return (isinf(value.real()) || isinf(value.imag())); } template