Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jinluchang committed Jun 19, 2024
1 parent 15ef95b commit da76f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qlat-utils/qlat_utils/include/qlat-utils/complex.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ ComplexT<T> qpolar(const T &r, const T &theta = T())
#endif

template <class T1, class T2>
RealD qnorm(const ComplexT<T1> &x, const ComplexT<T2> &y)
qacc RealD qnorm(const ComplexT<T1> &x, const ComplexT<T2> &y)
{
return qnorm(x.real(), y.real()) + qnorm(x.imag(), y.imag());
}

template <class T>
bool qisnan(const ComplexT<T> &arg)
qacc bool qisnan(const ComplexT<T> &arg)
{
return qisnan(arg.real()) or qisnan(arg.imag());
}
Expand Down

0 comments on commit da76f66

Please sign in to comment.