Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
adamant-pwn committed Nov 21, 2024
1 parent 30efc1c commit 1b4774f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cp-algo/util/complex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace cp_algo {
template<typename T> T abs(complex<T> x) {return x.abs();}
template<typename T> T& real(complex<T> &x) {return x.real();}
template<typename T> T& imag(complex<T> &x) {return x.imag();}
template<typename T> T real(complex<T> x) {return x.real();}
template<typename T> T imag(complex<T> x) {return x.imag();}
template<typename T> T real(complex<T> const& x) {return x.real();}
template<typename T> T imag(complex<T> const& x) {return x.imag();}
template<typename T> complex<T> polar(T r, T theta) {return complex<T>::polar(r, theta);}
}
#endif // CP_ALGO_UTIL_COMPLEX_HPP

0 comments on commit 1b4774f

Please sign in to comment.