numpy 2.0.0
|
#include "Python.h"
#include "structmember.h"
#include <numpy/ndarrayobject.h>
#include <numpy/ufuncobject.h>
#include <numpy/npy_cpu.h>
#include "lowlevel_strided_loops.h"
Data Structures | |
struct | _strided_zero_pad_data |
struct | _align_wrap_data |
struct | _wrap_copy_swap_data |
struct | _strided_cast_data |
struct | _one_to_n_data |
struct | _n_to_n_data |
struct | _subarray_broadcast_offsetrun |
struct | _subarray_broadcast_data |
struct | _single_field_transfer |
struct | _field_transfer_data |
struct | _dst_memset_zero_data |
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | _MULTIARRAYMODULE |
#define | NPY_LOWLEVEL_BUFFER_BLOCKSIZE 128 |
#define | NPY_DT_DBG_TRACING 0 |
#define | NPY_DT_REF_DBG_TRACING 0 |
#define | NPY_DT_DBG_REFTRACE(msg, ref) |
Typedefs | |
typedef void(* | free_strided_transfer_data )(void *) |
typedef void *(* | copy_strided_transfer_data )(void *) |
Functions | |
static int | get_decsrcref_transfer_function (int aligned, npy_intp src_stride, PyArray_Descr *src_dtype, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
static int | get_setdstzero_transfer_function (int aligned, npy_intp dst_stride, PyArray_Descr *dst_dtype, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
NPY_NO_EXPORT int | get_bool_setdstone_transfer_function (npy_intp dst_stride, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *NPY_UNUSED(out_needs_api)) |
static void | _strided_to_strided_move_references (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _strided_to_strided_copy_references (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
void * | _strided_zero_pad_data_copy (void *data) |
static void | _strided_to_strided_zero_pad_copy (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _strided_to_strided_truncate_copy (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
NPY_NO_EXPORT int | PyArray_GetStridedZeroPadCopyFn (int aligned, npy_intp src_stride, npy_intp dst_stride, npy_intp src_itemsize, npy_intp dst_itemsize, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata) |
void | _align_wrap_data_free (void *data) |
void * | _align_wrap_data_copy (void *data) |
static void | _strided_to_strided_contig_align_wrap (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _strided_to_strided_contig_align_wrap_init_dest (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
NPY_NO_EXPORT int | wrap_aligned_contig_transfer_function (npy_intp src_itemsize, npy_intp dst_itemsize, PyArray_StridedTransferFn *tobuffer, void *todata, PyArray_StridedTransferFn *frombuffer, void *fromdata, PyArray_StridedTransferFn *wrapped, void *wrappeddata, int init_dest, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata) |
void | _wrap_copy_swap_data_free (void *data) |
void * | _wrap_copy_swap_data_copy (void *data) |
static void | _strided_to_strided_wrap_copy_swap (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static int | wrap_copy_swap_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *dtype, int should_swap, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata) |
void | _strided_cast_data_free (void *data) |
void * | _strided_cast_data_copy (void *data) |
static void | _aligned_strided_to_strided_cast (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _aligned_strided_to_strided_cast_decref_src (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _aligned_contig_to_contig_cast (char *dst, npy_intp NPY_UNUSED(dst_stride), char *src, npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(itemsize), void *data) |
static int | get_nbo_cast_numeric_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, int src_type_num, int dst_type_num, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata) |
static int | get_nbo_cast_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api, int *out_needs_wrap) |
static int | get_cast_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
void | _one_to_n_data_free (void *data) |
void * | _one_to_n_data_copy (void *data) |
static void | _strided_to_strided_one_to_n (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _strided_to_strided_one_to_n_with_finish (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static int | wrap_transfer_function_one_to_n (PyArray_StridedTransferFn *stransfer_inner, void *data_inner, PyArray_StridedTransferFn *stransfer_finish_src, void *data_finish_src, npy_intp dst_itemsize, npy_intp N, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata) |
static int | get_one_to_n_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, npy_intp N, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
void | _n_to_n_data_free (void *data) |
void * | _n_to_n_data_copy (void *data) |
static void | _strided_to_strided_n_to_n (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp src_itemsize, void *data) |
static void | _contig_to_contig_n_to_n (char *dst, npy_intp NPY_UNUSED(dst_stride), char *src, npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static int | wrap_transfer_function_n_to_n (PyArray_StridedTransferFn *stransfer_inner, void *data_inner, npy_intp src_stride, npy_intp dst_stride, npy_intp src_itemsize, npy_intp dst_itemsize, npy_intp N, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata) |
static int | get_n_to_n_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, npy_intp N, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
void | _subarray_broadcast_data_free (void *data) |
void * | _subarray_broadcast_data_copy (void *data) |
static void | _strided_to_strided_subarray_broadcast (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static void | _strided_to_strided_subarray_broadcast_withrefs (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static int | get_subarray_broadcast_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, npy_intp src_size, npy_intp dst_size, PyArray_Dims src_shape, PyArray_Dims dst_shape, int move_references, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
static int | get_subarray_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
void | _field_transfer_data_free (void *data) |
void * | _field_transfer_data_copy (void *data) |
static void | _strided_to_strided_field_transfer (char *dst, npy_intp dst_stride, char *src, npy_intp src_stride, npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static int | get_fields_transfer_function (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
static int | get_decsrcref_fields_transfer_function (int aligned, npy_intp src_stride, PyArray_Descr *src_dtype, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
static int | get_setdestzero_fields_transfer_function (int aligned, npy_intp dst_stride, PyArray_Descr *dst_dtype, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
static void | _null_to_strided_set_bool_one (char *dst, npy_intp dst_stride, char *NPY_UNUSED(src), npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *NPY_UNUSED(data)) |
static void | _null_to_contig_set_bool_one (char *dst, npy_intp NPY_UNUSED(dst_stride), char *NPY_UNUSED(src), npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *NPY_UNUSED(data)) |
void * | _dst_memset_zero_data_copy (void *data) |
static void | _null_to_strided_memset_zero (char *dst, npy_intp dst_stride, char *NPY_UNUSED(src), npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static void | _null_to_contig_memset_zero (char *dst, npy_intp dst_stride, char *NPY_UNUSED(src), npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *data) |
static void | _null_to_strided_reference_setzero (char *dst, npy_intp dst_stride, char *NPY_UNUSED(src), npy_intp NPY_UNUSED(src_stride), npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *NPY_UNUSED(data)) |
static void | _dec_src_ref_nop (char *NPY_UNUSED(dst), npy_intp NPY_UNUSED(dst_stride), char *NPY_UNUSED(src), npy_intp NPY_UNUSED(src_stride), npy_intp NPY_UNUSED(N), npy_intp NPY_UNUSED(src_itemsize), void *NPY_UNUSED(data)) |
static void | _strided_to_null_dec_src_ref_reference (char *NPY_UNUSED(dst), npy_intp NPY_UNUSED(dst_stride), char *src, npy_intp src_stride, npy_intp N, npy_intp NPY_UNUSED(src_itemsize), void *NPY_UNUSED(data)) |
NPY_NO_EXPORT int | PyArray_GetDTypeTransferFunction (int aligned, npy_intp src_stride, npy_intp dst_stride, PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, int move_references, PyArray_StridedTransferFn **out_stransfer, void **out_transferdata, int *out_needs_api) |
#define _MULTIARRAYMODULE |
#define NPY_DT_DBG_REFTRACE | ( | msg, | |
ref | |||
) |
Referenced by wrap_copy_swap_function().
#define NPY_DT_DBG_TRACING 0 |
#define NPY_DT_REF_DBG_TRACING 0 |
#define NPY_LOWLEVEL_BUFFER_BLOCKSIZE 128 |
Referenced by _align_wrap_data_copy().
#define PY_SSIZE_T_CLEAN |
typedef void*(* copy_strided_transfer_data)(void *) |
typedef void(* free_strided_transfer_data)(void *) |
void* _align_wrap_data_copy | ( | void * | data | ) |
References NPY_LOWLEVEL_BUFFER_BLOCKSIZE.
void _align_wrap_data_free | ( | void * | data | ) |
References _align_wrap_data::dst_itemsize, _align_wrap_data::frombuffer, _align_wrap_data::fromdata, _align_wrap_data::tobuffer, _align_wrap_data::todata, _align_wrap_data::wrapped, and _align_wrap_data::wrappeddata.
static void _aligned_contig_to_contig_cast | ( | char * | dst, |
npy_intp | NPY_UNUSEDdst_stride, | ||
char * | src, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDitemsize, | ||
void * | data | ||
) | [static] |
Referenced by get_nbo_cast_transfer_function().
static void _aligned_strided_to_strided_cast | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _aligned_strided_to_strided_cast_decref_src | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _contig_to_contig_n_to_n | ( | char * | dst, |
npy_intp | NPY_UNUSEDdst_stride, | ||
char * | src, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | data | ||
) | [static] |
References _subarray_broadcast_data::data, _subarray_broadcast_data::data_decdstref, _subarray_broadcast_data::data_decsrcref, _subarray_broadcast_data::dst_itemsize, _subarray_broadcast_data::offsetruns, _subarray_broadcast_data::run_count, _subarray_broadcast_data::src_itemsize, _subarray_broadcast_data::src_N, _subarray_broadcast_data::stransfer, _subarray_broadcast_data::stransfer_decdstref, and _subarray_broadcast_data::stransfer_decsrcref.
Referenced by wrap_transfer_function_one_to_n().
void* _dst_memset_zero_data_copy | ( | void * | data | ) |
void* _field_transfer_data_copy | ( | void * | data | ) |
References _field_transfer_data_free(), _PyArray_Descr::fields, _PyArray_Descr::names, NPY_FAIL, PyArray_free, PyArray_FreeStridedTransferData(), PyArray_malloc, and PyDataType_REFCHK.
void _field_transfer_data_free | ( | void * | data | ) |
void* _n_to_n_data_copy | ( | void * | data | ) |
void _n_to_n_data_free | ( | void * | data | ) |
References _subarray_broadcast_data::data, PyArray_free, and PyArray_FreeStridedTransferData().
static void _null_to_contig_memset_zero | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | NPY_UNUSEDsrc, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | data | ||
) | [static] |
static void _null_to_contig_set_bool_one | ( | char * | dst, |
npy_intp | NPY_UNUSEDdst_stride, | ||
char * | NPY_UNUSEDsrc, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | NPY_UNUSEDdata | ||
) | [static] |
static void _null_to_strided_memset_zero | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | NPY_UNUSEDsrc, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | data | ||
) | [static] |
static void _null_to_strided_reference_setzero | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | NPY_UNUSEDsrc, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | NPY_UNUSEDdata | ||
) | [static] |
static void _null_to_strided_set_bool_one | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | NPY_UNUSEDsrc, | ||
npy_intp | NPY_UNUSEDsrc_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | NPY_UNUSEDdata | ||
) | [static] |
References _dec_src_ref_nop(), _PyArray_Descr::elsize, get_decsrcref_transfer_function(), and NPY_SUCCEED.
void* _one_to_n_data_copy | ( | void * | data | ) |
void _one_to_n_data_free | ( | void * | data | ) |
void* _strided_cast_data_copy | ( | void * | data | ) |
References _PyArray_Descr::elsize, PyTypeNum_ISNUMBER, and _PyArray_Descr::type_num.
void _strided_cast_data_free | ( | void * | data | ) |
static void _strided_to_null_dec_src_ref_reference | ( | char * | NPY_UNUSEDdst, |
npy_intp | NPY_UNUSEDdst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | NPY_UNUSEDdata | ||
) | [static] |
static void _strided_to_strided_contig_align_wrap | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_contig_align_wrap_init_dest | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
References NPY_FAIL.
static void _strided_to_strided_copy_references | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_field_transfer | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_move_references | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_one_to_n | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_one_to_n_with_finish | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_subarray_broadcast | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_truncate_copy | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
Referenced by _strided_to_strided_zero_pad_copy().
static void _strided_to_strided_wrap_copy_swap | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | NPY_UNUSEDsrc_itemsize, | ||
void * | data | ||
) | [static] |
static void _strided_to_strided_zero_pad_copy | ( | char * | dst, |
npy_intp | dst_stride, | ||
char * | src, | ||
npy_intp | src_stride, | ||
npy_intp | N, | ||
npy_intp | src_itemsize, | ||
void * | data | ||
) | [static] |
References _strided_to_strided_truncate_copy(), _strided_zero_pad_data_copy(), _strided_zero_pad_data::copyfunc, _strided_zero_pad_data::dst_itemsize, _strided_zero_pad_data::freefunc, NPY_FAIL, NPY_SUCCEED, PyArray_free, and PyArray_malloc.
void* _strided_zero_pad_data_copy | ( | void * | data | ) |
void* _subarray_broadcast_data_copy | ( | void * | data | ) |
References PyArray_Dims::len, and PyArray_Dims::ptr.
Referenced by get_n_to_n_transfer_function().
void _subarray_broadcast_data_free | ( | void * | data | ) |
void* _wrap_copy_swap_data_copy | ( | void * | data | ) |
void _wrap_copy_swap_data_free | ( | void * | data | ) |
NPY_NO_EXPORT int get_bool_setdstone_transfer_function | ( | npy_intp | dst_stride, |
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | NPY_UNUSEDout_needs_api | ||
) |
static int get_cast_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
Referenced by _dst_memset_zero_data_copy().
static int get_decsrcref_fields_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
NPY_NO_EXPORT int get_decsrcref_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
Referenced by _null_to_strided_set_bool_one().
static int get_fields_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
static int get_n_to_n_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
npy_intp | N, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
References _subarray_broadcast_data_copy(), _subarray_broadcast_data_free(), _subarray_broadcast_data::copyfunc, _subarray_broadcast_data::data, _subarray_broadcast_data::dst_itemsize, _subarray_broadcast_data::dst_N, _PyArray_Descr::elsize, _subarray_broadcast_data::freefunc, NPY_FAIL, NPY_SUCCEED, PyArray_free, PyArray_GetDTypeTransferFunction(), PyArray_malloc, PyDataType_REFCHK, _subarray_broadcast_data::src_itemsize, _subarray_broadcast_data::src_N, and _subarray_broadcast_data::stransfer.
static int get_nbo_cast_numeric_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
int | src_type_num, | ||
int | dst_type_num, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata | ||
) | [static] |
static int get_nbo_cast_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api, | ||
int * | out_needs_wrap | ||
) | [static] |
References _aligned_contig_to_contig_cast().
static int get_one_to_n_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
npy_intp | N, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
References NPY_FAIL.
static int get_setdestzero_fields_transfer_function | ( | int | aligned, |
npy_intp | dst_stride, | ||
PyArray_Descr * | dst_dtype, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
NPY_NO_EXPORT int get_setdstzero_transfer_function | ( | int | aligned, |
npy_intp | dst_stride, | ||
PyArray_Descr * | dst_dtype, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
static int get_subarray_broadcast_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
npy_intp | src_size, | ||
npy_intp | dst_size, | ||
PyArray_Dims | src_shape, | ||
PyArray_Dims | dst_shape, | ||
int | move_references, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
static int get_subarray_transfer_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) | [static] |
References PyArray_FreeStridedTransferData().
NPY_NO_EXPORT int PyArray_GetDTypeTransferFunction | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | src_dtype, | ||
PyArray_Descr * | dst_dtype, | ||
int | move_references, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata, | ||
int * | out_needs_api | ||
) |
Referenced by _strided_to_strided_subarray_broadcast_withrefs(), and get_n_to_n_transfer_function().
NPY_NO_EXPORT int PyArray_GetStridedZeroPadCopyFn | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
npy_intp | src_itemsize, | ||
npy_intp | dst_itemsize, | ||
PyArray_StridedTransferFn ** | outstransfer, | ||
void ** | outtransferdata | ||
) |
NPY_NO_EXPORT int wrap_aligned_contig_transfer_function | ( | npy_intp | src_itemsize, |
npy_intp | dst_itemsize, | ||
PyArray_StridedTransferFn * | tobuffer, | ||
void * | todata, | ||
PyArray_StridedTransferFn * | frombuffer, | ||
void * | fromdata, | ||
PyArray_StridedTransferFn * | wrapped, | ||
void * | wrappeddata, | ||
int | init_dest, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata | ||
) |
static int wrap_copy_swap_function | ( | int | aligned, |
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
PyArray_Descr * | dtype, | ||
int | should_swap, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata | ||
) | [static] |
References _strided_cast_data::aip, _strided_cast_data::aop, _strided_cast_data::castfunc, and NPY_DT_DBG_REFTRACE.
static int wrap_transfer_function_n_to_n | ( | PyArray_StridedTransferFn * | stransfer_inner, |
void * | data_inner, | ||
npy_intp | src_stride, | ||
npy_intp | dst_stride, | ||
npy_intp | src_itemsize, | ||
npy_intp | dst_itemsize, | ||
npy_intp | N, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata | ||
) | [static] |
References _subarray_broadcast_offsetrun::count, and _subarray_broadcast_offsetrun::offset.
static int wrap_transfer_function_one_to_n | ( | PyArray_StridedTransferFn * | stransfer_inner, |
void * | data_inner, | ||
PyArray_StridedTransferFn * | stransfer_finish_src, | ||
void * | data_finish_src, | ||
npy_intp | dst_itemsize, | ||
npy_intp | N, | ||
PyArray_StridedTransferFn ** | out_stransfer, | ||
void ** | out_transferdata | ||
) | [static] |
References _contig_to_contig_n_to_n().