tmp
/
pip-install-ghxuqwgs
/numpy_78e94bf2b6094bf9a1f3d92042f9bf46
/numpy
/random
/mtrand
/Python.pxi
| cdef extern from "Python.h": | |
| ctypedef int size_t | |
| char* PyString_AsString(object string) | |
| char* PyString_AS_STRING(object string) | |
| object PyString_FromString(char* c_string) | |
| object PyString_FromStringAndSize(char* c_string, int length) | |
| # Float API | |
| double PyFloat_AsDouble(object ob) | |
| long PyInt_AsLong(object ob) | |
| # Memory API | |
| void* PyMem_Malloc(size_t n) | |
| void* PyMem_Realloc(void* buf, size_t n) | |
| void PyMem_Free(void* buf) | |
| void Py_DECREF(object obj) | |
| void Py_XDECREF(object obj) | |
| void Py_INCREF(object obj) | |
| void Py_XINCREF(object obj) | |
| # CObject API | |
| # If this is uncommented it needs to be fixed to use PyCapsule | |
| # for Python >= 3.0 | |
| int PyFloat_Check(object obj) | |
| int PyInt_Check(object obj) | |
| # Error API | |
| int PyErr_Occurred() | |
| void PyErr_Clear() | |
| cdef extern from "string.h": | |
| void *memcpy(void *s1, void *s2, int n) | |
| cdef extern from "math.h": | |
| double fabs(double x) | |