deimos.python.complexobject

Mirror complexobject.h

Members

Functions

PyComplex_AsCComplex
Py_complex PyComplex_AsCComplex(PyObject* op)

_

PyComplex_Check
int PyComplex_Check(PyObject* op)

_

PyComplex_CheckExact
int PyComplex_CheckExact(PyObject* op)

_

PyComplex_FromCComplex
PyObject* PyComplex_FromCComplex(Py_complex)

_

PyComplex_FromDoubles
PyObject* PyComplex_FromDoubles(double real_, double imag)

_

PyComplex_ImagAsDouble
double PyComplex_ImagAsDouble(PyObject* op)

_

PyComplex_RealAsDouble
double PyComplex_RealAsDouble(PyObject* op)

_

_PyComplex_FormatAdvanced
PyObject* _PyComplex_FormatAdvanced(PyObject* obj, Py_UNICODE* format_spec, Py_ssize_t format_spec_len)

Availability: 3.*

_PyComplex_FormatAdvanced
PyObject* _PyComplex_FormatAdvanced(PyObject* obj, char* format_spec, Py_ssize_t format_spec_len)

Format the object based on the format_spec, as defined in PEP 3101 (Advanced String Formatting). */ /// Availability: >= 2.

c_abs
double c_abs(Py_complex)

Availability: >= 2.6

c_diff
Py_complex c_diff(Py_complex, Py_complex)

_

c_neg
Py_complex c_neg(Py_complex)

_

c_pow
Py_complex c_pow(Py_complex, Py_complex)

_

c_prod
Py_complex c_prod(Py_complex, Py_complex)

_

c_quot
Py_complex c_quot(Py_complex, Py_complex)

_

c_sum
Py_complex c_sum(Py_complex, Py_complex)

_

Structs

PyComplexObject
struct PyComplexObject

PyComplexObject represents a complex number with double-precision real and imaginary parts.

Py_complex
struct Py_complex

_

Meta