numpy
2.0.0
|
Defines | |
#define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define | NPY_ITERATOR_IMPLEMENTATION_CODE |
Functions | |
static int | npyiter_check_global_flags (npy_uint32 flags, npy_uint32 *itflags) |
static int | npyiter_check_op_axes (int nop, int oa_ndim, int **op_axes, npy_intp *itershape) |
static int | npyiter_calculate_ndim (int nop, PyArrayObject **op_in, int oa_ndim) |
static int | npyiter_check_per_op_flags (npy_uint32 flags, npyiter_opitflags *op_itflags) |
static int | npyiter_prepare_one_operand (PyArrayObject **op, char **op_dataptr, PyArray_Descr *op_request_dtype, PyArray_Descr **op_dtype, npy_uint32 flags, npy_uint32 op_flags, npyiter_opitflags *op_itflags) |
static int | npyiter_prepare_operands (int nop, PyArrayObject **op_in, PyArrayObject **op, char **op_dataptr, PyArray_Descr **op_request_dtypes, PyArray_Descr **op_dtype, npy_uint32 flags, npy_uint32 *op_flags, npyiter_opitflags *op_itflags, npy_int8 *out_maskop) |
static int | npyiter_check_casting (int nop, PyArrayObject **op, PyArray_Descr **op_dtype, NPY_CASTING casting, npyiter_opitflags *op_itflags) |
static int | npyiter_fill_axisdata (NpyIter *iter, npy_uint32 flags, npyiter_opitflags *op_itflags, char **op_dataptr, npy_uint32 *op_flags, int **op_axes, npy_intp *itershape) |
static void | npyiter_replace_axisdata (NpyIter *iter, int iop, PyArrayObject *op, int op_ndim, char *op_dataptr, int *op_axes) |
static void | npyiter_compute_index_strides (NpyIter *iter, npy_uint32 flags) |
static void | npyiter_apply_forced_iteration_order (NpyIter *iter, NPY_ORDER order) |
static void | npyiter_flip_negative_strides (NpyIter *iter) |
static void | npyiter_reverse_axis_ordering (NpyIter *iter) |
static void | npyiter_find_best_axis_ordering (NpyIter *iter) |
static PyArray_Descr * | npyiter_get_common_dtype (int nop, PyArrayObject **op, npyiter_opitflags *op_itflags, PyArray_Descr **op_dtype, PyArray_Descr **op_request_dtypes, int only_inputs) |
static PyArrayObject * | npyiter_new_temp_array (NpyIter *iter, PyTypeObject *subtype, npy_uint32 flags, npyiter_opitflags *op_itflags, int op_ndim, npy_intp *shape, PyArray_Descr *op_dtype, int *op_axes) |
static int | npyiter_allocate_arrays (NpyIter *iter, npy_uint32 flags, PyArray_Descr **op_dtype, PyTypeObject *subtype, npy_uint32 *op_flags, npyiter_opitflags *op_itflags, int **op_axes) |
static void | npyiter_get_priority_subtype (int nop, PyArrayObject **op, npyiter_opitflags *op_itflags, double *subtype_priority, PyTypeObject **subtype) |
static int | npyiter_allocate_transfer_functions (NpyIter *iter) |
NPY_NO_EXPORT NpyIter * | NpyIter_AdvancedNew (int nop, PyArrayObject **op_in, npy_uint32 flags, NPY_ORDER order, NPY_CASTING casting, npy_uint32 *op_flags, PyArray_Descr **op_request_dtypes, int oa_ndim, int **op_axes, npy_intp *itershape, npy_intp buffersize) |
NPY_NO_EXPORT NpyIter * | NpyIter_MultiNew (int nop, PyArrayObject **op_in, npy_uint32 flags, NPY_ORDER order, NPY_CASTING casting, npy_uint32 *op_flags, PyArray_Descr **op_request_dtypes) |
NPY_NO_EXPORT NpyIter * | NpyIter_New (PyArrayObject *op, npy_uint32 flags, NPY_ORDER order, NPY_CASTING casting, PyArray_Descr *dtype) |
NPY_NO_EXPORT NpyIter * | NpyIter_Copy (NpyIter *iter) |
NPY_NO_EXPORT int | NpyIter_Deallocate (NpyIter *iter) |
static const char * | npyiter_casting_to_string (NPY_CASTING casting) |
static int | check_mask_for_writemasked_reduction (NpyIter *iter, int iop) |
static NPY_INLINE npy_intp | intp_abs (npy_intp x) |
#define NPY_ITERATOR_IMPLEMENTATION_CODE |
#define NPY_NO_DEPRECATED_API NPY_API_VERSION |
static int check_mask_for_writemasked_reduction | ( | NpyIter * | iter, |
int | iop | ||
) | [static] |
static NPY_INLINE npy_intp intp_abs | ( | npy_intp | x | ) | [static] |
References NPY_MAX_INTP.
NPY_NO_EXPORT NpyIter* NpyIter_AdvancedNew | ( | int | nop, |
PyArrayObject ** | op_in, | ||
npy_uint32 | flags, | ||
NPY_ORDER | order, | ||
NPY_CASTING | casting, | ||
npy_uint32 * | op_flags, | ||
PyArray_Descr ** | op_request_dtypes, | ||
int | oa_ndim, | ||
int ** | op_axes, | ||
npy_intp * | itershape, | ||
npy_intp | buffersize | ||
) |
static int npyiter_allocate_arrays | ( | NpyIter * | iter, |
npy_uint32 | flags, | ||
PyArray_Descr ** | op_dtype, | ||
PyTypeObject * | subtype, | ||
npy_uint32 * | op_flags, | ||
npyiter_opitflags * | op_itflags, | ||
int ** | op_axes | ||
) | [static] |
<blockquote> op[iop]'s mask instead here.</blockquote>
static int npyiter_allocate_transfer_functions | ( | NpyIter * | iter | ) | [static] |
static void npyiter_apply_forced_iteration_order | ( | NpyIter * | iter, |
NPY_ORDER | order | ||
) | [static] |
static int npyiter_calculate_ndim | ( | int | nop, |
PyArrayObject ** | op_in, | ||
int | oa_ndim | ||
) | [static] |
static const char* npyiter_casting_to_string | ( | NPY_CASTING | casting | ) | [static] |
static int npyiter_check_casting | ( | int | nop, |
PyArrayObject ** | op, | ||
PyArray_Descr ** | op_dtype, | ||
NPY_CASTING | casting, | ||
npyiter_opitflags * | op_itflags | ||
) | [static] |
static int npyiter_check_global_flags | ( | npy_uint32 | flags, |
npy_uint32 * | itflags | ||
) | [static] |
References PyArray_NDIM.
static int npyiter_check_op_axes | ( | int | nop, |
int | oa_ndim, | ||
int ** | op_axes, | ||
npy_intp * | itershape | ||
) | [static] |
static int npyiter_check_per_op_flags | ( | npy_uint32 | op_flags, |
npyiter_opitflags * | op_itflags | ||
) | [static] |
Referenced by npyiter_prepare_one_operand().
static void npyiter_compute_index_strides | ( | NpyIter * | iter, |
npy_uint32 | flags | ||
) | [static] |
NPY_NO_EXPORT NpyIter* NpyIter_Copy | ( | NpyIter * | iter | ) |
References NPY_AUXDATA_FREE, NPY_SUCCEED, and PyArray_free.
NPY_NO_EXPORT int NpyIter_Deallocate | ( | NpyIter * | iter | ) |
Referenced by apply_business_day_count(), business_day_offset(), PyArray_CountNonzero(), and unbuffered_loop_nop1_ndim3().
static int npyiter_fill_axisdata | ( | NpyIter * | iter, |
npy_uint32 | flags, | ||
npyiter_opitflags * | op_itflags, | ||
char ** | op_dataptr, | ||
npy_uint32 * | op_flags, | ||
int ** | op_axes, | ||
npy_intp * | itershape | ||
) | [static] |
static void npyiter_find_best_axis_ordering | ( | NpyIter * | iter | ) | [static] |
static void npyiter_flip_negative_strides | ( | NpyIter * | iter | ) | [static] |
static PyArray_Descr * npyiter_get_common_dtype | ( | int | nop, |
PyArrayObject ** | op, | ||
npyiter_opitflags * | op_itflags, | ||
PyArray_Descr ** | op_dtype, | ||
PyArray_Descr ** | op_request_dtypes, | ||
int | only_inputs | ||
) | [static] |
static void npyiter_get_priority_subtype | ( | int | nop, |
PyArrayObject ** | op, | ||
npyiter_opitflags * | op_itflags, | ||
double * | subtype_priority, | ||
PyTypeObject ** | subtype | ||
) | [static] |
NPY_NO_EXPORT NpyIter* NpyIter_MultiNew | ( | int | nop, |
PyArrayObject ** | op_in, | ||
npy_uint32 | flags, | ||
NPY_ORDER | order, | ||
NPY_CASTING | casting, | ||
npy_uint32 * | op_flags, | ||
PyArray_Descr ** | op_request_dtypes | ||
) |
References NPY_AUXDATA_CLONE.
Referenced by apply_business_day_count(), and business_day_offset().
NPY_NO_EXPORT NpyIter* NpyIter_New | ( | PyArrayObject * | op, |
npy_uint32 | flags, | ||
NPY_ORDER | order, | ||
NPY_CASTING | casting, | ||
PyArray_Descr * | dtype | ||
) |
References npyiter_copy_to_buffers(), and npyiter_goto_iterindex().
static PyArrayObject * npyiter_new_temp_array | ( | NpyIter * | iter, |
PyTypeObject * | subtype, | ||
npy_uint32 | flags, | ||
npyiter_opitflags * | op_itflags, | ||
int | op_ndim, | ||
npy_intp * | shape, | ||
PyArray_Descr * | op_dtype, | ||
int * | op_axes | ||
) | [static] |
static int npyiter_prepare_one_operand | ( | PyArrayObject ** | op, |
char ** | op_dataptr, | ||
PyArray_Descr * | op_request_dtype, | ||
PyArray_Descr ** | op_dtype, | ||
npy_uint32 | flags, | ||
npy_uint32 | op_flags, | ||
npyiter_opitflags * | op_itflags | ||
) | [static] |
References npyiter_check_per_op_flags().
static int npyiter_prepare_operands | ( | int | nop, |
PyArrayObject ** | op_in, | ||
PyArrayObject ** | op, | ||
char ** | op_dataptr, | ||
PyArray_Descr ** | op_request_dtypes, | ||
PyArray_Descr ** | op_dtype, | ||
npy_uint32 | flags, | ||
npy_uint32 * | op_flags, | ||
npyiter_opitflags * | op_itflags, | ||
npy_int8 * | out_maskop | ||
) | [static] |
static void npyiter_replace_axisdata | ( | NpyIter * | iter, |
int | iop, | ||
PyArrayObject * | op, | ||
int | op_ndim, | ||
char * | op_dataptr, | ||
int * | op_axes | ||
) | [static] |
static void npyiter_reverse_axis_ordering | ( | NpyIter * | iter | ) | [static] |