52 : complex_pair_t (c1, 0.)
54 if (!isReal()) throw_invalid_argument(
"A single complex number needs to be real.");
59 : complex_pair_t (c1, c2)
63 bool isConjugate ()
const
65 return second == std::conj (first);
70 return first.imag() == 0 && second.imag() == 0;
79 if (first.imag() != 0)
80 return second == std::conj (first);
82 return second.imag () == 0 &&
83 second.real () != 0 &&
89 return Iir::is_nan (first) || Iir::is_nan (second);