|
numpy
2.0.0
|
#include <Python.h>#include "structmember.h"#include "numpy/arrayobject.h"#include "numpy/arrayscalars.h"#include "npy_config.h"#include "npy_pycompat.h"#include "buffer.h"#include "numpyos.h"#include "arrayobject.h"Data Structures | |
| struct | _tmp_string_t |
| struct | _buffer_info_t |
Defines | |
| #define | PY_SSIZE_T_CLEAN |
| #define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
| #define | _MULTIARRAYMODULE |
| #define | INIT_SIZE 16 |
Functions | |
| static Py_ssize_t | array_getsegcount (PyArrayObject *self, Py_ssize_t *lenp) |
| static Py_ssize_t | array_getreadbuf (PyArrayObject *self, Py_ssize_t segment, void **ptrptr) |
| static Py_ssize_t | array_getwritebuf (PyArrayObject *self, Py_ssize_t segment, void **ptrptr) |
| static Py_ssize_t | array_getcharbuf (PyArrayObject *self, Py_ssize_t segment, constchar **ptrptr) |
| static int | _append_char (_tmp_string_t *s, char c) |
| static int | _append_str (_tmp_string_t *s, char const *p) |
| static int | _is_natively_aligned_at (PyArray_Descr *descr, PyArrayObject *arr, Py_ssize_t offset) |
| static int | _buffer_format_string (PyArray_Descr *descr, _tmp_string_t *str, PyArrayObject *arr, Py_ssize_t *offset, char *active_byteorder) |
| static _buffer_info_t * | _buffer_info_new (PyArrayObject *arr) |
| static Py_ssize_t | _buffer_info_cmp (_buffer_info_t *a, _buffer_info_t *b) |
| static void | _buffer_info_free (_buffer_info_t *info) |
| static _buffer_info_t * | _buffer_get_info (PyObject *arr) |
| static void | _buffer_clear_info (PyObject *arr) |
| static int | array_getbuffer (PyObject *obj, Py_buffer *view, int flags) |
| NPY_NO_EXPORT void | _array_dealloc_buffer_info (PyArrayObject *self) |
| static int | _descriptor_from_pep3118_format_fast (char *s, PyObject **result) |
| static int | _pep3118_letter_to_type (char letter, int native, int complex) |
| NPY_NO_EXPORT PyArray_Descr * | _descriptor_from_pep3118_format (char *s) |
Variables | |
| static PyObject * | _buffer_info_cache = NULL |
| NPY_NO_EXPORT PyBufferProcs | array_as_buffer |
| #define _MULTIARRAYMODULE |
| #define INIT_SIZE 16 |
| #define NPY_NO_DEPRECATED_API NPY_API_VERSION |
| #define PY_SSIZE_T_CLEAN |
| static int _append_char | ( | _tmp_string_t * | s, |
| char | c | ||
| ) | [static] |
References _PyArray_Descr::alignment, _PyArray_Descr::elsize, PyArray_DATA, and PyArray_NDIM.
| static int _append_str | ( | _tmp_string_t * | s, |
| char const * | p | ||
| ) | [static] |
References _PyArray_Descr::alignment, and PyArray_STRIDE.
| NPY_NO_EXPORT void _array_dealloc_buffer_info | ( | PyArrayObject * | self | ) |
| static void _buffer_clear_info | ( | PyObject * | arr | ) | [static] |
| static int _buffer_format_string | ( | PyArray_Descr * | descr, |
| _tmp_string_t * | str, | ||
| PyArrayObject * | arr, | ||
| Py_ssize_t * | offset, | ||
| char * | active_byteorder | ||
| ) | [static] |
| static _buffer_info_t* _buffer_get_info | ( | PyObject * | arr | ) | [static] |
| static Py_ssize_t _buffer_info_cmp | ( | _buffer_info_t * | a, |
| _buffer_info_t * | b | ||
| ) | [static] |
| static void _buffer_info_free | ( | _buffer_info_t * | info | ) | [static] |
| static _buffer_info_t* _buffer_info_new | ( | PyArrayObject * | arr | ) | [static] |
References _buffer_info_t::format, and _buffer_info_t::shape.
| NPY_NO_EXPORT PyArray_Descr* _descriptor_from_pep3118_format | ( | char * | s | ) |
| static int _descriptor_from_pep3118_format_fast | ( | char * | s, |
| PyObject ** | result | ||
| ) | [static] |
| static int _is_natively_aligned_at | ( | PyArray_Descr * | descr, |
| PyArrayObject * | arr, | ||
| Py_ssize_t | offset | ||
| ) | [static] |
| static int _pep3118_letter_to_type | ( | char | letter, |
| int | native, | ||
| int | complex | ||
| ) | [static] |
| static int array_getbuffer | ( | PyObject * | obj, |
| Py_buffer * | view, | ||
| int | flags | ||
| ) | [static] |
| static Py_ssize_t array_getcharbuf | ( | PyArrayObject * | self, |
| Py_ssize_t | segment, | ||
| constchar ** | ptrptr | ||
| ) | [static] |
| static Py_ssize_t array_getreadbuf | ( | PyArrayObject * | self, |
| Py_ssize_t | segment, | ||
| void ** | ptrptr | ||
| ) | [static] |
| static Py_ssize_t array_getsegcount | ( | PyArrayObject * | self, |
| Py_ssize_t * | lenp | ||
| ) | [static] |
References PyArray_DATA, PyArray_ISONESEGMENT, and PyArray_NBYTES.
| static Py_ssize_t array_getwritebuf | ( | PyArrayObject * | self, |
| Py_ssize_t | segment, | ||
| void ** | ptrptr | ||
| ) | [static] |
PyObject* _buffer_info_cache = NULL [static] |
| NPY_NO_EXPORT PyBufferProcs array_as_buffer |
{
(readbufferproc)array_getreadbuf,
(writebufferproc)array_getwritebuf,
(segcountproc)array_getsegcount,
(charbufferproc)array_getcharbuf,
(getbufferproc)array_getbuffer,
(releasebufferproc)0,
}