picop.cycomplex#
Fast complex helpers.
- picop.cycomplex.complex_check(p)#
Return True if
pis acomplexor subtype (PyComplex_Check). :type p:object:param p:- Return type:
- picop.cycomplex.complex_check_exact(p)#
Return True if
type(p) is complex(PyComplex_CheckExact). :type p:object:param p:- Return type:
- 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. :type real:float:param real: :type imag:float:param imag:- Return type: