51 return lhs.real() <
rhs.real();
54 return lhs.imag() <
rhs.imag();
70 return lhs.real() <=
rhs.real();
73 return lhs.imag() <=
rhs.imag();
111 template<
typename Out,
typename In>
116 return std::complex<Out>(
static_cast<Out>(value.real()),
static_cast<Out>(value.imag()));
123 template<
typename dtype>
128 return std::hash<dtype>()(
val.real()) ^ (std::hash<dtype>()(
val.imag()) << 1);
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept
Definition essentiallyEqual.hpp:49
Definition Cartesian.hpp:40
bool operator>=(const std::complex< T > &lhs, const std::complex< T > &rhs) noexcept
Definition StdComplexOperators.hpp:99
bool operator>(const std::complex< T > &lhs, const std::complex< T > &rhs) noexcept
Definition StdComplexOperators.hpp:85
bool operator<(const std::complex< T > &lhs, const std::complex< T > &rhs) noexcept
Definition StdComplexOperators.hpp:47
std::complex< Out > complex_cast(const std::complex< In > &value) noexcept
Definition StdComplexOperators.hpp:112
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
bool operator<=(const std::complex< T > &lhs, const std::complex< T > &rhs) noexcept
Definition StdComplexOperators.hpp:66
Definition StdComplexOperators.hpp:125
std::size_t operator()(const std::complex< dtype > &val) const
Definition StdComplexOperators.hpp:126