numpy
2.0.0
|
#include <Python.h>
#include "numpy/arrayobject.h"
#include "mem_overlap.h"
#include "npy_extint128.h"
#include "npy_pycompat.h"
Defines | |
#define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define | GET_PYBUF_FLAG(FLAG) |
#define | RETVAL |
Typedefs | |
typedef void(* | inplace_map_binop )(PyArrayMapIterObject *, PyArrayIterObject *) |
Functions | |
static PyObject * | IsPythonScalar (PyObject *dummy, PyObject *args) |
static int copy_ | name (PyArrayIterObject *itx, PyArrayNeighborhoodIterObject *niterx, npy_intp *bounds, PyObject **out) |
static int | copy_object (PyArrayIterObject *itx, PyArrayNeighborhoodIterObject *niterx, npy_intp *bounds, PyObject **out) |
static PyObject * | test_neighborhood_iterator (PyObject *NPY_UNUSED(self), PyObject *args) |
static int | copy_double_double (PyArrayNeighborhoodIterObject *itx, PyArrayNeighborhoodIterObject *niterx, npy_intp *bounds, PyObject **out) |
static PyObject * | test_neighborhood_iterator_oob (PyObject *NPY_UNUSED(self), PyObject *args) |
static void | test_hook (void *old, void *new, size_t size, void *user_data) |
static PyObject * | test_pydatamem_seteventhook_start (PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args)) |
static PyObject * | test_pydatamem_seteventhook_end (PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args)) |
static void | npy_float64_inplace_add (PyArrayMapIterObject *mit, PyArrayIterObject *it) |
static int | map_increment (PyArrayMapIterObject *mit, PyObject *op, inplace_map_binop add_inplace) |
static PyObject * | inplace_increment (PyObject *dummy, PyObject *args) |
static PyObject * | incref_elide (PyObject *dummy, PyObject *args) |
static PyObject * | incref_elide_l (PyObject *dummy, PyObject *args) |
static PyObject * | int_subclass (PyObject *dummy, PyObject *args) |
static PyObject * | get_buffer_info (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | array_indexing (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | test_as_c_array (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | test_nditer_too_large (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | array_solve_diophantine (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_internal_overlap (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | pylong_from_int128 (npy_extint128_t value) |
static int | int128_from_pylong (PyObject *obj, npy_extint128_t *result) |
static PyObject * | extint_safe_binop (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_to_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_to_64 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_mul_64_64 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_add_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_sub_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_neg_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_shl_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_shr_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_gt_128 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_divmod_128_64 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_floordiv_128_64 (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | extint_ceildiv_128_64 (PyObject *NPY_UNUSED(self), PyObject *args) |
PyMODINIT_FUNC | initmultiarray_tests (void) |
Variables | |
static int | malloc_free_counts [2] |
static PyDataMem_EventHookFunc * | old_hook = NULL |
static void * | old_data |
inplace_map_binop | addition_funcs [] |
int | type_numbers [] |
static PyMethodDef | Multiarray_TestsMethods [] |
#define GET_PYBUF_FLAG | ( | FLAG | ) |
buf_flag = PyUnicode_FromString(#FLAG); \
flag_matches = PyObject_RichCompareBool(buf_flag, tmp, Py_EQ); \
Py_DECREF(buf_flag); \
if (flag_matches == 1) { \
Py_DECREF(tmp); \
flags |= PyBUF_##FLAG; \
continue; \
} \
else if (flag_matches == -1) { \
Py_DECREF(tmp); \
return NULL; \
}
#define NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define RETVAL |
typedef void(* inplace_map_binop)(PyArrayMapIterObject *, PyArrayIterObject *) |
static PyObject* array_indexing | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* array_internal_overlap | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array_solve_diophantine | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static int copy_double_double | ( | PyArrayNeighborhoodIterObject * | itx, |
PyArrayNeighborhoodIterObject * | niterx, | ||
npy_intp * | bounds, | ||
PyObject ** | out | ||
) | [static] |
static int copy_object | ( | PyArrayIterObject * | itx, |
PyArrayNeighborhoodIterObject * | niterx, | ||
npy_intp * | bounds, | ||
PyObject ** | out | ||
) | [static] |
static PyObject* extint_add_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_ceildiv_128_64 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_divmod_128_64 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
References test_pydatamem_seteventhook_start().
static PyObject* extint_floordiv_128_64 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
References extint_to_128().
static PyObject* extint_gt_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_mul_64_64 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_neg_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_safe_binop | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
References c, int128_from_pylong(), pylong_from_int128(), and sub_128().
static PyObject* extint_shl_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
References c, floordiv_128_64(), and int128_from_pylong().
static PyObject* extint_shr_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_sub_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* extint_to_128 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
Referenced by extint_floordiv_128_64().
static PyObject* extint_to_64 | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* get_buffer_info | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* incref_elide | ( | PyObject * | dummy, |
PyObject * | args | ||
) | [static] |
static PyObject* incref_elide_l | ( | PyObject * | dummy, |
PyObject * | args | ||
) | [static] |
PyMODINIT_FUNC initmultiarray_tests | ( | void | ) |
static PyObject* inplace_increment | ( | PyObject * | dummy, |
PyObject * | args | ||
) | [static] |
static int int128_from_pylong | ( | PyObject * | obj, |
npy_extint128_t * | result | ||
) | [static] |
static PyObject* int_subclass | ( | PyObject * | dummy, |
PyObject * | args | ||
) | [static] |
static PyObject* IsPythonScalar | ( | PyObject * | dummy, |
PyObject * | args | ||
) | [static] |
static int map_increment | ( | PyArrayMapIterObject * | mit, |
PyObject * | op, | ||
inplace_map_binop | add_inplace | ||
) | [static] |
References PyArray_Check, PyArray_FailUnlessWriteable(), PyArray_NDIM, and PyArray_TYPE.
static int copy_ name | ( | PyArrayIterObject * | itx, |
PyArrayNeighborhoodIterObject * | niterx, | ||
npy_intp * | bounds, | ||
PyObject ** | out | ||
) | [static] |
References PyArray_DATA, PyArray_ITER_NEXT, PyArray_NDIM, PyArray_SimpleNew, PyArrayNeighborhoodIter_Next(), and PyArrayNeighborhoodIter_Reset().
static void npy_float64_inplace_add | ( | PyArrayMapIterObject * | mit, |
PyArrayIterObject * | it | ||
) | [static] |
Referenced by test_pydatamem_seteventhook_end().
static PyObject* pylong_from_int128 | ( | npy_extint128_t | value | ) | [static] |
Referenced by extint_safe_binop().
static PyObject* test_as_c_array | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
<
static void test_hook | ( | void * | old, |
void * | new, | ||
size_t | size, | ||
void * | user_data | ||
) | [static] |
<
<
static PyObject* test_nditer_too_large | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* test_neighborhood_iterator | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* test_neighborhood_iterator_oob | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
static PyObject* test_pydatamem_seteventhook_end | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | NPY_UNUSEDargs | ||
) | [static] |
References npy_float64_inplace_add().
static PyObject* test_pydatamem_seteventhook_start | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | NPY_UNUSEDargs | ||
) | [static] |
References PyArrayIterObject_tag::dataptr, PyArrayMapIterObject::dataptr, PyArray_ITER_NEXT, and PyArray_MapIterNext().
Referenced by extint_divmod_128_64().
{ npy_float64_inplace_add, NULL}
int malloc_free_counts[2] [static] |
PyMethodDef Multiarray_TestsMethods[] [static] |
void* old_data [static] |
PyDataMem_EventHookFunc* old_hook = NULL [static] |
int type_numbers[] |
{ NPY_FLOAT64, -1000}