numpy
2.0.0
|
#include "Python.h"
#include "structmember.h"
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "numpy/npy_math.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "arraytypes.h"
#include "arrayobject.h"
#include "hashdescr.h"
#include "descriptor.h"
#include "calculation.h"
#include "number.h"
#include "scalartypes.h"
#include "numpymemoryview.h"
#include "convert_datatype.h"
#include "conversion_utils.h"
#include "nditer_pywrap.h"
#include "methods.h"
#include "_datetime.h"
#include "datetime_strings.h"
#include "datetime_busday.h"
#include "datetime_busdaycal.h"
#include "item_selection.h"
#include "shape.h"
#include "ctors.h"
#include <setjmp.h>
#include <signal.h>
#include "__multiarray_api.c"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define | _MULTIARRAYMODULE |
#define | STRIDING_OK(op, order) |
#define | _test_code() |
#define | SINGLE_INHERIT(child, parent) |
#define | DUAL_INHERIT(child, parent1, parent2) |
#define | DUAL_INHERIT_COMPARE(child, parent1, parent2) |
#define | DUAL_INHERIT2(child, parent1, parent2) |
#define | _addnew(key, val, one) |
#define | _addone(key, val) |
#define | RETVAL |
#define | ADDCONST(NAME) |
Functions | |
NPY_NO_EXPORT double | PyArray_GetPriority (PyObject *obj, double default_) |
NPY_NO_EXPORT int | PyArray_MultiplyIntList (int *l1, int n) |
NPY_NO_EXPORT npy_intp | PyArray_MultiplyList (npy_intp *l1, int n) |
NPY_NO_EXPORT npy_intp | PyArray_OverflowMultiplyList (npy_intp *l1, int n) |
NPY_NO_EXPORT void * | PyArray_GetPtr (PyArrayObject *obj, npy_intp *ind) |
NPY_NO_EXPORT int | PyArray_CompareLists (npy_intp *l1, npy_intp *l2, int n) |
NPY_NO_EXPORT int | PyArray_AsCArray (PyObject **op, void *ptr, npy_intp *dims, int nd, PyArray_Descr *typedescr) |
NPY_NO_EXPORT int | PyArray_As1D (PyObject **op, char **ptr, int *d1, int typecode) |
NPY_NO_EXPORT int | PyArray_As2D (PyObject **op, char ***ptr, int *d1, int *d2, int typecode) |
NPY_NO_EXPORT int | PyArray_Free (PyObject *op, void *ptr) |
NPY_NO_EXPORT PyArrayObject * | PyArray_ConcatenateArrays (int narrays, PyArrayObject **arrays, int axis) |
NPY_NO_EXPORT PyArrayObject * | PyArray_ConcatenateFlattenedArrays (int narrays, PyArrayObject **arrays, NPY_ORDER order) |
NPY_NO_EXPORT PyObject * | PyArray_Concatenate (PyObject *op, int axis) |
static int | _signbit_set (PyArrayObject *arr) |
NPY_NO_EXPORT NPY_SCALARKIND | PyArray_ScalarKind (int typenum, PyArrayObject **arr) |
NPY_NO_EXPORT int | PyArray_CanCoerceScalar (int thistype, int neededtype, NPY_SCALARKIND scalar) |
static PyArrayObject * | new_array_for_sum (PyArrayObject *ap1, PyArrayObject *ap2, PyArrayObject *out, int nd, npy_intp dimensions[], int typenum) |
NPY_NO_EXPORT PyObject * | PyArray_InnerProduct (PyObject *op1, PyObject *op2) |
NPY_NO_EXPORT PyObject * | PyArray_MatrixProduct2 (PyObject *op1, PyObject *op2, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_MatrixProduct (PyObject *op1, PyObject *op2) |
NPY_NO_EXPORT PyObject * | PyArray_CopyAndTranspose (PyObject *op) |
static PyArrayObject * | _pyarray_correlate (PyArrayObject *ap1, PyArrayObject *ap2, int typenum, int mode, int *inverted) |
static int | _pyarray_revert (PyArrayObject *ret) |
NPY_NO_EXPORT PyObject * | PyArray_Correlate2 (PyObject *op1, PyObject *op2, int mode) |
NPY_NO_EXPORT PyObject * | PyArray_Correlate (PyObject *op1, PyObject *op2, int mode) |
static PyObject * | array_putmask (PyObject *NPY_UNUSED(module), PyObject *args, PyObject *kwds) |
static int | _equivalent_fields (PyObject *field1, PyObject *field2) |
static int | _equivalent_subarrays (PyArray_ArrayDescr *sub1, PyArray_ArrayDescr *sub2) |
NPY_NO_EXPORT unsigned char | PyArray_EquivTypes (PyArray_Descr *type1, PyArray_Descr *type2) |
NPY_NO_EXPORT unsigned char | PyArray_EquivTypenums (int typenum1, int typenum2) |
static PyObject * | _prepend_ones (PyArrayObject *arr, int nd, int ndmin, NPY_ORDER order) |
static PyObject * | _array_fromobject (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kws) |
static PyObject * | array_copyto (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_empty (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_empty_like (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_scalar (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_zeros (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_count_nonzero (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
static PyObject * | array_fromstring (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_fromfile (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_fromiter (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_frombuffer (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_concatenate (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_innerproduct (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_matrixproduct (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static int | einsum_sub_op_from_str (PyObject *args, PyObject **str_obj, char **subscripts, PyArrayObject **op) |
static int | einsum_list_to_subscripts (PyObject *obj, char *subscripts, int subsize) |
static int | einsum_sub_op_from_lists (PyObject *args, char *subscripts, int subsize, PyArrayObject **op) |
static PyObject * | array_einsum (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_fastCopyAndTranspose (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_correlate (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_correlate2 (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_arange (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kws) |
NPY_NO_EXPORT unsigned int | PyArray_GetNDArrayCVersion (void) |
NPY_NO_EXPORT unsigned int | PyArray_GetNDArrayCFeatureVersion (void) |
static PyObject * | array__get_ndarray_c_version (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT int | PyArray_GetEndianness (void) |
static PyObject * | array__reconstruct (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_set_string_function (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
static PyObject * | array_set_ops_function (PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args), PyObject *kwds) |
static PyObject * | array_set_datetimeparse_function (PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args), PyObject *NPY_UNUSED(kwds)) |
NPY_NO_EXPORT PyObject * | PyArray_Where (PyObject *condition, PyObject *x, PyObject *y) |
static PyObject * | array_where (PyObject *NPY_UNUSED(ignored), PyObject *args) |
static PyObject * | array_lexsort (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_can_cast_safely (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
static PyObject * | array_promote_types (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_min_scalar_type (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_result_type (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_datetime_data (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | new_buffer (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | buffer_buffer (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static void | _SigSegv_Handler (int signum) |
static PyObject * | as_buffer (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | format_longfloat (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | compare_chararrays (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | _vec_string_with_args (PyArrayObject *char_array, PyArray_Descr *type, PyObject *method, PyObject *args) |
static PyObject * | _vec_string_no_args (PyArrayObject *char_array, PyArray_Descr *type, PyObject *method) |
static PyObject * | _vec_string (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT void | _PyArray_SigintHandler (int signum) |
NPY_NO_EXPORT void * | _PyArray_GetSigintBuf (void) |
static PyObject * | test_interrupt (PyObject *NPY_UNUSED(self), PyObject *args) |
NPY_NO_EXPORT PyDataMem_EventHookFunc * | PyDataMem_SetEventHook (PyDataMem_EventHookFunc *newhook, void *user_data, void **old_data) |
NPY_NO_EXPORT void * | PyDataMem_NEW (size_t size) |
NPY_NO_EXPORT void | PyDataMem_FREE (void *ptr) |
NPY_NO_EXPORT void * | PyDataMem_RENEW (void *ptr, size_t size) |
static int | setup_scalartypes (PyObject *NPY_UNUSED(dict)) |
static void | set_flaginfo (PyObject *d) |
PyMODINIT_FUNC | initmultiarray (void) |
Variables | |
NPY_NO_EXPORT int | NPY_NUMUSERTYPES = 0 |
NPY_NO_EXPORT PyTypeObject | PyBigArray_Type |
jmp_buf | _NPY_SIGSEGV_BUF |
NPY_SIGJMP_BUF | _NPY_SIGINT_BUF |
NPY_NO_EXPORT PyDataMem_EventHookFunc * | _PyDataMem_eventhook |
NPY_NO_EXPORT void * | _PyDataMem_eventhook_user_data |
static struct PyMethodDef | array_module_methods [] |
#define _addnew | ( | key, | |
val, | |||
one | |||
) |
PyDict_SetItemString(newd, #key, s=PyInt_FromLong(val)); \ Py_DECREF(s); \ PyDict_SetItemString(newd, #one, s=PyInt_FromLong(val)); \ Py_DECREF(s)
#define _addone | ( | key, | |
val | |||
) |
PyDict_SetItemString(newd, #key, s=PyInt_FromLong(val)); \ Py_DECREF(s)
#define _MULTIARRAYMODULE |
#define _test_code | ( | ) |
{ \ test = *((char*)memptr); \ if (!ro) { \ *((char *)memptr) = '\0'; \ *((char *)memptr) = test; \ } \ test = *((char*)memptr+size-1); \ if (!ro) { \ *((char *)memptr+size-1) = '\0'; \ *((char *)memptr+size-1) = test; \ } \ }
Referenced by array_can_cast_safely().
#define ADDCONST | ( | NAME | ) |
s = PyInt_FromLong(NPY_##NAME); \ PyDict_SetItemString(d, #NAME, s); \ Py_DECREF(s)
Referenced by setup_scalartypes().
#define DUAL_INHERIT | ( | child, | |
parent1, | |||
parent2 | |||
) |
Py##child##ArrType_Type.tp_base = &Py##parent2##ArrType_Type; \ Py##child##ArrType_Type.tp_bases = \ Py_BuildValue("(OO)", &Py##parent2##ArrType_Type, \ &Py##parent1##_Type); \ if (PyType_Ready(&Py##child##ArrType_Type) < 0) { \ PyErr_Print(); \ PyErr_Format(PyExc_SystemError, \ "could not initialize Py%sArrType_Type", \ #child); \ return -1; \ } \ Py##child##ArrType_Type.tp_hash = Py##parent1##_Type.tp_hash;
Referenced by PyDataMem_FREE(), PyDataMem_NEW(), and PyDataMem_SetEventHook().
#define DUAL_INHERIT2 | ( | child, | |
parent1, | |||
parent2 | |||
) |
Py##child##ArrType_Type.tp_base = &Py##parent1##_Type; \ Py##child##ArrType_Type.tp_bases = \ Py_BuildValue("(OO)", &Py##parent1##_Type, \ &Py##parent2##ArrType_Type); \ Py##child##ArrType_Type.tp_richcompare = \ Py##parent1##_Type.tp_richcompare; \ DUAL_INHERIT_COMPARE(child, parent1, parent2) \ Py##child##ArrType_Type.tp_hash = Py##parent1##_Type.tp_hash; \ if (PyType_Ready(&Py##child##ArrType_Type) < 0) { \ PyErr_Print(); \ PyErr_Format(PyExc_SystemError, \ "could not initialize Py%sArrType_Type", \ #child); \ return -1; \ }
Referenced by PyDataMem_RENEW().
#define DUAL_INHERIT_COMPARE | ( | child, | |
parent1, | |||
parent2 | |||
) |
Py##child##ArrType_Type.tp_compare = \ Py##parent1##_Type.tp_compare;
#define NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define PY_SSIZE_T_CLEAN |
#define RETVAL |
#define SINGLE_INHERIT | ( | child, | |
parent | |||
) |
Py##child##ArrType_Type.tp_base = &Py##parent##ArrType_Type; \ if (PyType_Ready(&Py##child##ArrType_Type) < 0) { \ PyErr_Print(); \ PyErr_Format(PyExc_SystemError, \ "could not initialize Py%sArrType_Type", \ #child); \ return -1; \ }
Referenced by PyDataMem_FREE(), PyDataMem_NEW(), PyDataMem_RENEW(), and PyDataMem_SetEventHook().
#define STRIDING_OK | ( | op, | |
order | |||
) |
((order) == NPY_ANYORDER || \ (order) == NPY_KEEPORDER || \ ((order) == NPY_CORDER && PyArray_ISCONTIGUOUS(op)) || \ ((order) == NPY_FORTRANORDER && PyArray_ISFORTRAN(op)))
static PyObject* _array_fromobject | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kws | ||
) | [static] |
static int _equivalent_fields | ( | PyObject * | field1, |
PyObject * | field2 | ||
) | [static] |
Referenced by PyArray_Correlate2().
static int _equivalent_subarrays | ( | PyArray_ArrayDescr * | sub1, |
PyArray_ArrayDescr * | sub2 | ||
) | [static] |
Referenced by PyArray_Correlate2().
static PyObject* _prepend_ones | ( | PyArrayObject * | arr, |
int | nd, | ||
int | ndmin, | ||
NPY_ORDER | order | ||
) | [static] |
References NPY_BOOL, NPY_SAME_KIND_CASTING, PyArray_AssignArray(), PyArray_CastingConverter(), PyArray_Converter(), PyArray_DescrFromType(), PyArray_FromAny(), and PyArray_Type.
static PyArrayObject* _pyarray_correlate | ( | PyArrayObject * | ap1, |
PyArrayObject * | ap2, | ||
int | typenum, | ||
int | mode, | ||
int * | inverted | ||
) | [static] |
References _pyarray_revert(), NPY_ARRAY_DEFAULT, PyArray_Conjugate(), PyArray_DescrFromType(), PyArray_FromAny(), PyArray_ISCOMPLEX, and PyArray_ObjectType().
NPY_NO_EXPORT void* _PyArray_GetSigintBuf | ( | void | ) |
References array_is_busday(), as_buffer(), buffer_buffer(), compare_chararrays(), format_longfloat(), and new_buffer().
static int _pyarray_revert | ( | PyArrayObject * | ret | ) | [static] |
Referenced by _pyarray_correlate().
NPY_NO_EXPORT void _PyArray_SigintHandler | ( | int | signum | ) |
References array_busday_offset(), and array_datetime_as_string().
static int _signbit_set | ( | PyArrayObject * | arr | ) | [static] |
static void _SigSegv_Handler | ( | int | signum | ) | [static] |
Referenced by array_can_cast_safely().
static PyObject* _vec_string | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
References array_can_cast_safely(), array_concatenate(), array_correlate(), array_correlate2(), array_count_nonzero(), array_einsum(), array_empty(), array_empty_like(), array_fastCopyAndTranspose(), array_frombuffer(), array_fromfile(), array_fromiter(), array_fromstring(), array_innerproduct(), array_lexsort(), array_matrixproduct(), array_min_scalar_type(), array_promote_types(), array_putmask(), array_scalar(), and array_where().
static PyObject* _vec_string_no_args | ( | PyArrayObject * | char_array, |
PyArray_Descr * | type, | ||
PyObject * | method | ||
) | [static] |
References _PyDataMem_eventhook_user_data.
static PyObject* _vec_string_with_args | ( | PyArrayObject * | char_array, |
PyArray_Descr * | type, | ||
PyObject * | method, | ||
PyObject * | args | ||
) | [static] |
static PyObject* array__get_ndarray_c_version | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array__reconstruct | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
static PyObject* array_arange | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kws | ||
) | [static] |
static PyObject* array_can_cast_safely | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
References _SigSegv_Handler(), _test_code, NPY_FALSE, NPY_TRUE, and PyArray_BoolConverter().
Referenced by _vec_string().
static PyObject* array_concatenate | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_copyto | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array_correlate | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_correlate2 | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_count_nonzero | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_datetime_data | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
References NPY_MAXARGS.
static PyObject* array_einsum | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_empty | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_empty_like | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array_fastCopyAndTranspose | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_frombuffer | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_fromfile | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_fromiter | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_fromstring | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_innerproduct | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_lexsort | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_matrixproduct | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_min_scalar_type | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_promote_types | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_putmask | ( | PyObject * | NPY_UNUSEDmodule, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_result_type | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
static PyObject* array_scalar | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_set_datetimeparse_function | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | NPY_UNUSEDargs, | ||
PyObject * | NPY_UNUSEDkwds | ||
) | [static] |
static PyObject* array_set_ops_function | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | NPY_UNUSEDargs, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array_set_string_function | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array_where | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_zeros | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* as_buffer | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _PyArray_GetSigintBuf().
static PyObject* buffer_buffer | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _PyArray_GetSigintBuf().
static PyObject* compare_chararrays | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _PyArray_GetSigintBuf().
static int einsum_list_to_subscripts | ( | PyObject * | obj, |
char * | subscripts, | ||
int | subsize | ||
) | [static] |
static int einsum_sub_op_from_lists | ( | PyObject * | args, |
char * | subscripts, | ||
int | subsize, | ||
PyArrayObject ** | op | ||
) | [static] |
static int einsum_sub_op_from_str | ( | PyObject * | args, |
PyObject ** | str_obj, | ||
char ** | subscripts, | ||
PyArrayObject ** | op | ||
) | [static] |
static PyObject* format_longfloat | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _PyArray_GetSigintBuf().
PyMODINIT_FUNC initmultiarray | ( | void | ) |
static PyArrayObject* new_array_for_sum | ( | PyArrayObject * | ap1, |
PyArrayObject * | ap2, | ||
PyArrayObject * | out, | ||
int | nd, | ||
npy_intp | dimensions[], | ||
int | typenum | ||
) | [static] |
static PyObject* new_buffer | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _PyArray_GetSigintBuf().
NPY_NO_EXPORT int PyArray_As1D | ( | PyObject ** | op, |
char ** | ptr, | ||
int * | d1, | ||
int | typecode | ||
) |
References DEPRECATE, PyArray_AsCArray(), and PyArray_DescrFromType().
NPY_NO_EXPORT int PyArray_As2D | ( | PyObject ** | op, |
char *** | ptr, | ||
int * | d1, | ||
int * | d2, | ||
int | typecode | ||
) |
NPY_NO_EXPORT int PyArray_AsCArray | ( | PyObject ** | op, |
void * | ptr, | ||
npy_intp * | dims, | ||
int | nd, | ||
PyArray_Descr * | typedescr | ||
) |
References PyArray_DATA, PyArray_DIMS, PyArray_malloc, and PyArray_STRIDES.
Referenced by PyArray_As1D().
NPY_NO_EXPORT int PyArray_CanCoerceScalar | ( | int | thistype, |
int | neededtype, | ||
NPY_SCALARKIND | scalar | ||
) |
<blockquote>
</blockquote>
NPY_NO_EXPORT int PyArray_CompareLists | ( | npy_intp * | l1, |
npy_intp * | l2, | ||
int | n | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Concatenate | ( | PyObject * | op, |
int | axis | ||
) |
References _npy_scalar_kinds_table, _signbit_set(), _PyArray_Descr::f, NPY_INTNEG_SCALAR, NPY_INTPOS_SCALAR, NPY_NOSCALAR, NPY_NTYPES, PyArray_DescrFromType(), PyTypeNum_ISUSERDEF, and PyArray_ArrFuncs::scalarkind.
NPY_NO_EXPORT PyArrayObject* PyArray_ConcatenateArrays | ( | int | narrays, |
PyArrayObject ** | arrays, | ||
int | axis | ||
) |
NPY_NO_EXPORT PyArrayObject* PyArray_ConcatenateFlattenedArrays | ( | int | narrays, |
PyArrayObject ** | arrays, | ||
NPY_ORDER | order | ||
) |
NPY_NO_EXPORT PyObject* PyArray_CopyAndTranspose | ( | PyObject * | op | ) |
NPY_NO_EXPORT PyObject* PyArray_Correlate | ( | PyObject * | op1, |
PyObject * | op2, | ||
int | mode | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Correlate2 | ( | PyObject * | op1, |
PyObject * | op2, | ||
int | mode | ||
) |
References _equivalent_fields(), _equivalent_subarrays(), _arr_descr::base, _PyArray_Descr::byteorder, _PyArray_Descr::elsize, _PyArray_Descr::fields, NPY_DATETIME, NPY_FALSE, NPY_NO_EXPORT, NPY_TIMEDELTA, NPY_TRUE, NPY_VOID, PyArray_EquivTypes(), PyArray_ISNBO, _arr_descr::shape, _PyArray_Descr::subarray, and _PyArray_Descr::type_num.
NPY_NO_EXPORT unsigned char PyArray_EquivTypenums | ( | int | typenum1, |
int | typenum2 | ||
) |
NPY_NO_EXPORT unsigned char PyArray_EquivTypes | ( | PyArray_Descr * | type1, |
PyArray_Descr * | type2 | ||
) |
Referenced by PyArray_Correlate2().
NPY_NO_EXPORT int PyArray_Free | ( | PyObject * | op, |
void * | ptr | ||
) |
NPY_NO_EXPORT int PyArray_GetEndianness | ( | void | ) |
NPY_NO_EXPORT unsigned int PyArray_GetNDArrayCFeatureVersion | ( | void | ) |
NPY_NO_EXPORT unsigned int PyArray_GetNDArrayCVersion | ( | void | ) |
NPY_NO_EXPORT double PyArray_GetPriority | ( | PyObject * | obj, |
double | default_ | ||
) |
NPY_NO_EXPORT void* PyArray_GetPtr | ( | PyArrayObject * | obj, |
npy_intp * | ind | ||
) |
NPY_NO_EXPORT PyObject* PyArray_InnerProduct | ( | PyObject * | op1, |
PyObject * | op2 | ||
) |
NPY_NO_EXPORT PyObject* PyArray_MatrixProduct | ( | PyObject * | op1, |
PyObject * | op2 | ||
) |
NPY_NO_EXPORT PyObject* PyArray_MatrixProduct2 | ( | PyObject * | op1, |
PyObject * | op2, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT int PyArray_MultiplyIntList | ( | int * | l1, |
int | n | ||
) |
NPY_NO_EXPORT npy_intp PyArray_MultiplyList | ( | npy_intp * | l1, |
int | n | ||
) |
References NPY_MAX_INTP.
Referenced by get_decsrcref_fields_transfer_function(), PyArray_ArgMax(), and PyArray_ElementStrides().
NPY_NO_EXPORT npy_intp PyArray_OverflowMultiplyList | ( | npy_intp * | l1, |
int | n | ||
) |
NPY_NO_EXPORT NPY_SCALARKIND PyArray_ScalarKind | ( | int | typenum, |
PyArrayObject ** | arr | ||
) |
References Py_TYPE, and PyArray_GetPriority().
NPY_NO_EXPORT PyObject* PyArray_Where | ( | PyObject * | condition, |
PyObject * | x, | ||
PyObject * | y | ||
) |
NPY_NO_EXPORT void PyDataMem_FREE | ( | void * | ptr | ) |
NPY_NO_EXPORT void* PyDataMem_NEW | ( | size_t | size | ) |
References DUAL_INHERIT, and SINGLE_INHERIT.
Referenced by _new_sort().
NPY_NO_EXPORT void* PyDataMem_RENEW | ( | void * | ptr, |
size_t | size | ||
) |
References DUAL_INHERIT2, and SINGLE_INHERIT.
Referenced by array_fromfile_binary(), and PyArray_Arange().
NPY_NO_EXPORT PyDataMem_EventHookFunc* PyDataMem_SetEventHook | ( | PyDataMem_EventHookFunc * | newhook, |
void * | user_data, | ||
void ** | old_data | ||
) |
<blockquote>
void hook(void *old, void *new, size_t size, void *user_data).
</blockquote>
Returns a pointer to the previous hook or NULL. If old_data is non-NULL, the previous user_data pointer will be copied to it.
result = PyDataMem_NEW(size) -> (*hook)(NULL, result, size, user_data) PyDataMem_FREE(ptr) -> (*hook)(ptr, NULL, 0, user_data) result = PyDataMem_RENEW(ptr, size) -> (*hook)(ptr, result, size, user_data)
When the hook is called, the GIL will be held by the calling thread. The hook should be written to be reentrant, if it performs operations that might cause new allocation events (such as the creation/descruction numpy objects, or creating/destroying Python objects which might cause a gc)
References DUAL_INHERIT, and SINGLE_INHERIT.
static void set_flaginfo | ( | PyObject * | d | ) | [static] |
static int setup_scalartypes | ( | PyObject * | NPY_UNUSEDdict | ) | [static] |
References ADDCONST.
static PyObject* test_interrupt | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
jmp_buf _NPY_SIGSEGV_BUF |
Referenced by _vec_string_no_args().
struct PyMethodDef array_module_methods[] [static] |
NPY_NO_EXPORT int NPY_NUMUSERTYPES = 0 |
NPY_NO_EXPORT PyTypeObject PyBigArray_Type |