(PyComplex_AsCComplex op)Return the Py_complex value of the complex number op.
If op is not a Python complex number object but has a complex() method, this method will first be called to convert op to a Python complex number object. Upon failure, this method returns -1.0 as a real value.
Return the Py_complex value of the complex number op. If op is not a Python complex number object but has a __complex__() method, this method will first be called to convert op to a Python complex number object. Upon failure, this method returns -1.0 as a real value.
(PyComplex_Check p)Return true if its argument is a PyComplexObject or a subtype of PyComplexObject.
Return true if its argument is a PyComplexObject or a subtype of PyComplexObject.
(PyComplex_FromCComplex v)Return value: New reference.
Create a new Python complex number object from a C Py_complex value.
Return value: New reference. Create a new Python complex number object from a C Py_complex value.
(PyComplex_FromDoubles real imag)Return value: New reference.
Return a new PyComplexObject object from real and imag.
Return value: New reference. Return a new PyComplexObject object from real and imag.
(PyComplex_ImagAsDouble op)Return the imaginary part of op as a C double.
Return the imaginary part of op as a C double.
(PyComplex_RealAsDouble op)Return the real part of op as a C double.
Return the real part of op as a C double.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |