picop.cycomplex#
Fast complex helpers.
- picop.cycomplex.complex_check_exact(p)#
Return True if
type(p) is complex(PyComplex_CheckExact).
- picop.cycomplex.complex_eq(a, b)#
Return True if values are equal with Python complex parity.
Notes
NaN on either real or imag part yields unequal (CPython parity).
- picop.cycomplex.complex_from_doubles(real, imag)#
Return
complex(real, imag)viaPyComplex_FromDoubles.
- picop.cycomplex.complex_imag_as_double(op)#
Return the imaginary part of
opas a Cdouble(PyComplex_ImagAsDouble).