Template Function librapid::operator==(const T&, const Complex<T>&)#
Defined in File complex.hpp
Function Documentation#
-
template<typename T>
constexpr bool librapid::operator==(const T &left, const Complex<T> &right)# Equality comparison of scalar and complex number.
Compares the real component of the complex number to the scalar, and the imaginary component to zero. Returns true if and only if both comparisons are true.
- Template Parameters
T – Scalar type of complex number
- Parameters
left – LHS scalar
right – RHS complex number
- Returns
true if equal, false otherwise