40#include "MathSupplement.h"
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);
106 : poles (p), zeros (z)
112 const complex_t& p2,
const complex_t& z2)
118 bool isSinglePole ()
const
120 return poles.second == 0. && zeros.second == 0.;
125 return poles.is_nan() || zeros.is_nan();
Kind
Definition Types.h:134
bool isMatchedPair() const
Definition Types.h:77