Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:48

0001 /* Complex number structure */
0002 
0003 #ifndef Py_COMPLEXOBJECT_H
0004 #define Py_COMPLEXOBJECT_H
0005 #ifdef __cplusplus
0006 extern "C" {
0007 #endif
0008 
0009 /* Complex object interface */
0010 
0011 PyAPI_DATA(PyTypeObject) PyComplex_Type;
0012 
0013 #define PyComplex_Check(op) PyObject_TypeCheck((op), &PyComplex_Type)
0014 #define PyComplex_CheckExact(op) Py_IS_TYPE((op), &PyComplex_Type)
0015 
0016 PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
0017 
0018 PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op);
0019 PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op);
0020 
0021 #ifndef Py_LIMITED_API
0022 #  define Py_CPYTHON_COMPLEXOBJECT_H
0023 #  include "cpython/complexobject.h"
0024 #  undef Py_CPYTHON_COMPLEXOBJECT_H
0025 #endif
0026 
0027 #ifdef __cplusplus
0028 }
0029 #endif
0030 #endif /* !Py_COMPLEXOBJECT_H */