Template Function librapid::operator==(const Complex<T>&, T&)#

Function Documentation#

template<typename T>
constexpr bool librapid::operator==(const Complex<T> &left, T &right)#

Equality comparison of complex number and scalar.

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 complex number

  • right – RHS scalar

Returns

true if equal, false otherwise