numpy 2.0.0
|
#include "Python.h"
#include "structmember.h"
#include <numpy/ndarrayobject.h>
#include <numpy/npy_3kcompat.h>
#include "npy_config.h"
Data Structures | |
struct | NewNpyArrayIterObject_tag |
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | _MULTIARRAYMODULE |
Typedefs | |
typedef struct NewNpyArrayIterObject_tag | NewNpyArrayIterObject |
Functions | |
void | npyiter_cache_values (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds) |
static int | NpyIter_GlobalFlagsConverter (PyObject *flags_in, npy_uint32 *flags) |
static int | npyiter_order_converter (PyObject *order_in, NPY_ORDER *order) |
NPY_NO_EXPORT int | PyArray_CastingConverter (PyObject *obj, NPY_CASTING *casting) |
static int | NpyIter_OpFlagsConverter (PyObject *op_flags_in, npy_uint32 *op_flags) |
static int | npyiter_convert_op_flags_array (PyObject *op_flags_in, npy_uint32 *op_flags_array, npy_intp nop) |
static int | npyiter_convert_dtypes (PyObject *op_dtypes_in, PyArray_Descr **op_dtypes, npy_intp nop) |
static int | npyiter_convert_op_axes (PyObject *op_axes_in, npy_intp nop, int **op_axes, int *oa_ndim) |
static int | npyiter_convert_ops (PyObject *op_in, PyObject *op_flags_in, PyArrayObject **op, npy_uint32 *op_flags, int *nop_out) |
static int | npyiter_init (NewNpyArrayIterObject *self, PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT PyObject * | NpyIter_NestedIters (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
static void | npyiter_dealloc (NewNpyArrayIterObject *self) |
static int | npyiter_resetbasepointers (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_reset (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_copy (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_iternext (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_remove_axis (NewNpyArrayIterObject *self, PyObject *args) |
static PyObject * | npyiter_remove_multi_index (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_enable_external_loop (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_debug_print (NewNpyArrayIterObject *self) |
NPY_NO_EXPORT PyObject * | npyiter_seq_item (NewNpyArrayIterObject *self, Py_ssize_t i) |
static PyObject * | npyiter_value_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_operands_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_itviews_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_next (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_shape_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_multi_index_get (NewNpyArrayIterObject *self) |
static int | npyiter_multi_index_set (NewNpyArrayIterObject *self, PyObject *value) |
static PyObject * | npyiter_index_get (NewNpyArrayIterObject *self) |
static int | npyiter_index_set (NewNpyArrayIterObject *self, PyObject *value) |
static PyObject * | npyiter_iterindex_get (NewNpyArrayIterObject *self) |
static int | npyiter_iterindex_set (NewNpyArrayIterObject *self, PyObject *value) |
static PyObject * | npyiter_iterrange_get (NewNpyArrayIterObject *self) |
static int | npyiter_iterrange_set (NewNpyArrayIterObject *self, PyObject *value) |
static PyObject * | npyiter_has_delayed_bufalloc_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_iterationneedsapi_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_has_multi_index_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_has_index_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_dtypes_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_ndim_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_nop_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_itersize_get (NewNpyArrayIterObject *self) |
static PyObject * | npyiter_finished_get (NewNpyArrayIterObject *self) |
NPY_NO_EXPORT Py_ssize_t | npyiter_seq_length (NewNpyArrayIterObject *self) |
NPY_NO_EXPORT PyObject * | npyiter_seq_slice (NewNpyArrayIterObject *self, Py_ssize_t ilow, Py_ssize_t ihigh) |
NPY_NO_EXPORT int | npyiter_seq_ass_item (NewNpyArrayIterObject *self, Py_ssize_t i, PyObject *v) |
static int | npyiter_seq_ass_slice (NewNpyArrayIterObject *self, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) |
static PyObject * | npyiter_subscript (NewNpyArrayIterObject *self, PyObject *op) |
static int | npyiter_ass_subscript (NewNpyArrayIterObject *self, PyObject *op, PyObject *value) |
Variables | |
static PyMethodDef | npyiter_methods [] |
static PyMemberDef | npyiter_members [] |
static PyGetSetDef | npyiter_getsets [] |
NPY_NO_EXPORT PySequenceMethods | npyiter_as_sequence |
NPY_NO_EXPORT PyMappingMethods | npyiter_as_mapping |
NPY_NO_EXPORT PyTypeObject | NpyIter_Type |
#define _MULTIARRAYMODULE |
#define PY_SSIZE_T_CLEAN |
typedef struct NewNpyArrayIterObject_tag NewNpyArrayIterObject |
static int npyiter_ass_subscript | ( | NewNpyArrayIterObject * | self, |
PyObject * | op, | ||
PyObject * | value | ||
) | [static] |
Referenced by npyiter_seq_ass_slice().
void npyiter_cache_values | ( | NewNpyArrayIterObject * | self | ) |
static int npyiter_convert_dtypes | ( | PyObject * | op_dtypes_in, |
PyArray_Descr ** | op_dtypes, | ||
npy_intp | nop | ||
) | [static] |
static int npyiter_convert_op_axes | ( | PyObject * | op_axes_in, |
npy_intp | nop, | ||
int ** | op_axes, | ||
int * | oa_ndim | ||
) | [static] |
static int npyiter_convert_op_flags_array | ( | PyObject * | op_flags_in, |
npy_uint32 * | op_flags_array, | ||
npy_intp | nop | ||
) | [static] |
static int npyiter_convert_ops | ( | PyObject * | op_in, |
PyObject * | op_flags_in, | ||
PyArrayObject ** | op, | ||
npy_uint32 * | op_flags, | ||
int * | nop_out | ||
) | [static] |
References NPY_ITER_READONLY.
static PyObject* npyiter_copy | ( | NewNpyArrayIterObject * | self | ) | [static] |
static void npyiter_dealloc | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_debug_print | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_dtypes_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
Referenced by npyiter_seq_ass_slice().
static PyObject* npyiter_enable_external_loop | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_finished_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
Referenced by npyiter_seq_ass_slice().
static int NpyIter_GlobalFlagsConverter | ( | PyObject * | flags_in, |
npy_uint32 * | flags | ||
) | [static] |
static PyObject* npyiter_has_delayed_bufalloc_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_has_index_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_has_multi_index_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_index_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static int npyiter_index_set | ( | NewNpyArrayIterObject * | self, |
PyObject * | value | ||
) | [static] |
static int npyiter_init | ( | NewNpyArrayIterObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* npyiter_iterationneedsapi_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_iterindex_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static int npyiter_iterindex_set | ( | NewNpyArrayIterObject * | self, |
PyObject * | value | ||
) | [static] |
static PyObject* npyiter_iternext | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_iterrange_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static int npyiter_iterrange_set | ( | NewNpyArrayIterObject * | self, |
PyObject * | value | ||
) | [static] |
References NpyIter_GetNOp(), NpyIter_HasDelayedBufAlloc(), and NpyIter_HasExternalLoop().
static PyObject* npyiter_itersize_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
Referenced by npyiter_seq_ass_slice().
static PyObject* npyiter_itviews_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_multi_index_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static int npyiter_multi_index_set | ( | NewNpyArrayIterObject * | self, |
PyObject * | value | ||
) | [static] |
static PyObject* npyiter_ndim_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
Referenced by npyiter_seq_ass_slice().
NPY_NO_EXPORT PyObject* NpyIter_NestedIters | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
<blockquote>
Referenced by _vec_string_no_args().
static PyObject* npyiter_new | ( | PyTypeObject * | subtype, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* npyiter_next | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_nop_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
Referenced by npyiter_seq_ass_slice().
static PyObject* npyiter_operands_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static int NpyIter_OpFlagsConverter | ( | PyObject * | op_flags_in, |
npy_uint32 * | op_flags | ||
) | [static] |
static int npyiter_order_converter | ( | PyObject * | order_in, |
NPY_ORDER * | order | ||
) | [static] |
static PyObject* npyiter_remove_axis | ( | NewNpyArrayIterObject * | self, |
PyObject * | args | ||
) | [static] |
static PyObject* npyiter_remove_multi_index | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_reset | ( | NewNpyArrayIterObject * | self | ) | [static] |
static int npyiter_resetbasepointers | ( | NewNpyArrayIterObject * | self | ) | [static] |
NPY_NO_EXPORT int npyiter_seq_ass_item | ( | NewNpyArrayIterObject * | self, |
Py_ssize_t | i, | ||
PyObject * | v | ||
) |
static int npyiter_seq_ass_slice | ( | NewNpyArrayIterObject * | self, |
Py_ssize_t | ilow, | ||
Py_ssize_t | ihigh, | ||
PyObject * | v | ||
) | [static] |
References NPY_NO_EXPORT, npyiter_as_mapping, npyiter_as_sequence, npyiter_ass_subscript(), npyiter_dtypes_get(), npyiter_finished_get(), npyiter_itersize_get(), npyiter_ndim_get(), npyiter_nop_get(), npyiter_seq_ass_item(), npyiter_seq_item(), npyiter_seq_length(), npyiter_seq_slice(), npyiter_subscript(), and NpyIter_Type.
NPY_NO_EXPORT PyObject * npyiter_seq_item | ( | NewNpyArrayIterObject * | self, |
Py_ssize_t | i | ||
) |
Referenced by npyiter_seq_ass_slice().
NPY_NO_EXPORT Py_ssize_t npyiter_seq_length | ( | NewNpyArrayIterObject * | self | ) |
Referenced by npyiter_seq_ass_slice().
NPY_NO_EXPORT PyObject* npyiter_seq_slice | ( | NewNpyArrayIterObject * | self, |
Py_ssize_t | ilow, | ||
Py_ssize_t | ihigh | ||
) |
Referenced by npyiter_seq_ass_slice().
static PyObject* npyiter_shape_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
static PyObject* npyiter_subscript | ( | NewNpyArrayIterObject * | self, |
PyObject * | op | ||
) | [static] |
Referenced by npyiter_seq_ass_slice().
static PyObject* npyiter_value_get | ( | NewNpyArrayIterObject * | self | ) | [static] |
NPY_NO_EXPORT int PyArray_CastingConverter | ( | PyObject * | obj, |
NPY_CASTING * | casting | ||
) |
NPY_NO_EXPORT PyMappingMethods npyiter_as_mapping |
{ (inquiry)npyiter_seq_length, (binaryfunc)npyiter_subscript, (objobjargproc)npyiter_ass_subscript, }
Referenced by npyiter_seq_ass_slice().
NPY_NO_EXPORT PySequenceMethods npyiter_as_sequence |
Referenced by npyiter_seq_ass_slice().
PyGetSetDef npyiter_getsets[] [static] |
PyMemberDef npyiter_members[] [static] |
{ {NULL, 0, 0, 0, NULL}, }
PyMethodDef npyiter_methods[] [static] |
{ {"reset", (PyCFunction)npyiter_reset, METH_NOARGS, NULL}, {"copy", (PyCFunction)npyiter_copy, METH_NOARGS, NULL}, {"__copy__", (PyCFunction)npyiter_copy, METH_NOARGS, NULL}, {"iternext", (PyCFunction)npyiter_iternext, METH_NOARGS, NULL}, {"remove_axis", (PyCFunction)npyiter_remove_axis, METH_VARARGS, NULL}, {"remove_multi_index", (PyCFunction)npyiter_remove_multi_index, METH_NOARGS, NULL}, {"enable_external_loop", (PyCFunction)npyiter_enable_external_loop, METH_NOARGS, NULL}, {"debug_print", (PyCFunction)npyiter_debug_print, METH_NOARGS, NULL}, {NULL, NULL, 0, NULL}, }
NPY_NO_EXPORT PyTypeObject NpyIter_Type |
Referenced by npyiter_seq_ass_slice().