Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OuadiElfarouki committed Sep 11, 2023
1 parent 2f7f877 commit 6943043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/include/common/float_comparison.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ scalar_t abs(scalar_t value) noexcept {
#ifdef BLAS_ENABLE_COMPLEX
template <typename scalar_t>
bool isnan(std::complex<scalar_t> value) noexcept {
return (isnan<scalar_t>(value.imag()) || isnan<scalar_t>(value.imag()));
return (isnan<scalar_t>(value.real()) || isnan<scalar_t>(value.imag()));
}

template <typename scalar_t>
bool isinf(std::complex<scalar_t> value) noexcept {
return (isinf<scalar_t>(value.imag()) || isinf<scalar_t>(value.imag()));
return (isinf<scalar_t>(value.real()) || isinf<scalar_t>(value.imag()));
}

template <typename scalar_t>
Expand Down

0 comments on commit 6943043

Please sign in to comment.