|
numpy
2.0.0
|
#include "Python.h"#include "structmember.h"#include "numpy/npy_common.h"#include "numpy/arrayobject.h"#include "numpy/arrayscalars.h"#include "npy_pycompat.h"#include "numpy/npy_math.h"#include "numpy/halffloat.h"#include "npy_config.h"#include "npy_sort.h"#include "common.h"#include "ctors.h"#include "lowlevel_strided_loops.h"#include "usertypes.h"#include "_datetime.h"#include "arrayobject.h"#include "alloc.h"#include "numpyos.h"#include <string.h>#include "cblasfuncs.h"#include "npy_cblas.h"#include <limits.h>Defines | |
| #define | PY_SSIZE_T_CLEAN |
| #define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
| #define | _MULTIARRAYMODULE |
| #define | __ALIGNED(obj, sz) ((((size_t) obj) % (sz))==0) |
| #define | _NPY_UNUSEDBOOL NPY_UNUSED |
| #define | _NPY_UNUSEDBYTE NPY_UNUSED |
| #define | _NPY_UNUSEDUBYTE NPY_UNUSED |
| #define | _NPY_UNUSEDSHORT NPY_UNUSED |
| #define | _NPY_UNUSEDUSHORT NPY_UNUSED |
| #define | _NPY_UNUSEDINT NPY_UNUSED |
| #define | _NPY_UNUSEDUINT NPY_UNUSED |
| #define | _NPY_UNUSEDLONG NPY_UNUSED |
| #define | _NPY_UNUSEDULONG NPY_UNUSED |
| #define | _NPY_UNUSEDLONGLONG NPY_UNUSED |
| #define | _NPY_UNUSEDULONGLONG NPY_UNUSED |
| #define | _NPY_UNUSEDHALF NPY_UNUSED |
| #define | _NPY_UNUSEDFLOAT NPY_UNUSED |
| #define | _NPY_UNUSEDDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDLONGDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDCFLOAT NPY_UNUSED |
| #define | _NPY_UNUSEDCDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDCLONGDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDDATETIME NPY_UNUSED |
| #define | _NPY_UNUSEDTIMEDELTA NPY_UNUSED |
| #define | _NPY_UNUSEDHALF NPY_UNUSED |
| #define | _NPY_UNUSEDSTRING |
| #define | _NPY_UNUSEDVOID |
| #define | _NPY_UNUSEDUNICODE |
| #define | fname @_scan NULL |
| #define | fname @_fromstr NULL |
| #define | _NONZERO(a) ((a) != 0) |
| #define | WHITESPACE " \t\n\r\v\f" |
| #define | WHITELEN 6 |
| #define | PyArray_UCS4_ISSPACE(ch) Py_STRING_ISSPACE((char)ch) |
| #define | LT(a, b) ((a) < (b) || ((b) != (b) && (a) ==(a))) |
| #define | _LESS_THAN_OR_EQUAL(a, b) ((a) <= (b)) |
| #define | VOID_argmax NULL |
| #define | VOID_argmin NULL |
| #define | BOOL_fill NULL |
| #define | _LESS_THAN(a, b) ((a) < (b)) |
| #define | _GREATER_THAN(a, b) ((a) > (b)) |
| #define | _HALF_LESS_THAN(a, b) (!npy_half_isnan(a) && npy_half_lt_nonan(a, b)) |
| #define | _HALF_GREATER_THAN(a, b) (!npy_half_isnan(a) && npy_half_lt_nonan(b, a)) |
| #define | OBJECT_fastclip NULL |
| #define | OBJECT_fastputmask NULL |
| #define | OBJECT_fasttake NULL |
| #define | _ALIGN(type) offsetof(struct {char c; type v;}, v) |
| #define | _MAX_LETTER 128 |
| #define | SETTYPE(name) |
Functions | |
| static double | MyPyFloat_AsDouble (PyObject *obj) |
| static npy_half | MyPyFloat_AsHalf (PyObject *obj) |
| static PyObject * | MyPyFloat_FromHalf (npy_half h) |
| static type MyPyLong_As | Type (PyObject *obj) |
| static npy_longlong | npy_strtoll (const char *str, char **endptr, int base) |
| static npy_ulonglong | npy_strtoull (const char *str, char **endptr, int base) |
| static PyObject *TYPE | _getitem (void *input, void *vap) |
| static int TYPE | _setitem (PyObject *op, void *ov, void *vap) |
| static NPY_INLINE npy_longdouble | string_to_long_double (PyObject *op) |
| static PyObject * | LONGDOUBLE_getitem (void *ip, void *ap) |
| static int | LONGDOUBLE_setitem (PyObject *op, void *ov, void *vap) |
| static PyObject * | CLONGDOUBLE_getitem (void *ip, void *ap) |
| static PyObject * | UNICODE_getitem (void *ip, void *vap) |
| static int | UNICODE_setitem (PyObject *op, void *ov, void *vap) |
| static PyObject * | STRING_getitem (void *ip, void *vap) |
| static int | STRING_setitem (PyObject *op, void *ov, void *vap) |
| static PyObject * | OBJECT_getitem (void *ip, void *NPY_UNUSED(ap)) |
| static int | OBJECT_setitem (PyObject *op, void *ov, void *NPY_UNUSED(ap)) |
| static PyObject * | VOID_getitem (void *input, void *vap) |
| NPY_NO_EXPORT int | PyArray_CopyObject (PyArrayObject *, PyObject *) |
| static int | VOID_setitem (PyObject *op, void *input, void *vap) |
| static PyObject * | DATETIME_getitem (void *ip, void *vap) |
| static PyObject * | TIMEDELTA_getitem (void *ip, void *vap) |
| static int | DATETIME_setitem (PyObject *op, void *ov, void *vap) |
| static int | TIMEDELTA_setitem (PyObject *op, void *ov, void *vap) |
| static void FROMTYPE _to_ | TOTYPE (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void TYPE | _to_HALF (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void HALF_to_ | TYPE (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void | CLONGDOUBLE_to_HALF (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void | HALF_to_CLONGDOUBLE (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void FROMTYPE | _to_BOOL (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void | HALF_to_BOOL (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *NPY_UNUSED(aop)) |
| static void FROMTYPE | _to_OBJECT (void *input, void *output, npy_intp n, void *vaip, void *NPY_UNUSED(aop)) |
| static void OBJECT_to_ | TOTYPE (void *input, void *output, npy_intp n, void *NPY_UNUSED(aip), void *aop) |
| static void from _to_ | to (void *input, void *output, npy_intp n, void *vaip, void *aop) |
| static int fname | _scan (FILE *fp,@type @*ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignored)) |
| static int | LONGDOUBLE_scan (FILE *fp, npy_longdouble *ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignored)) |
| static int | HALF_scan (FILE *fp, npy_half *ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignored)) |
| static int fname | _scan (FILE *fp,@type @*ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignore2)) |
| static int | BOOL_scan (FILE *fp, npy_bool *ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignore2)) |
| static int fname | _fromstr (char *str, void *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static int | LONGDOUBLE_fromstr (char *str, void *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static int | HALF_fromstr (char *str, void *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static int | BOOL_fromstr (char *str, void *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static void fname | _copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, int swap, void *NPY_UNUSED(arr)) |
| static void fname | _copyswap (void *dst, void *src, int swap, void *NPY_UNUSED(arr)) |
| static void fname | _copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void fname | _copyswap (void *dst, void *src, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void | OBJECT_copyswapn (PyObject **dst, npy_intp dstride, PyObject **src, npy_intp sstride, npy_intp n, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void | OBJECT_copyswap (PyObject **dst, PyObject **src, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void | STRING_copyswapn (char *dst, npy_intp dstride, char *src, npy_intp sstride, npy_intp n, int NPY_UNUSED(swap), PyArrayObject *arr) |
| static void | VOID_copyswapn (char *dst, npy_intp dstride, char *src, npy_intp sstride, npy_intp n, int swap, PyArrayObject *arr) |
| static void | VOID_copyswap (char *dst, char *src, int swap, PyArrayObject *arr) |
| static void | UNICODE_copyswapn (char *dst, npy_intp dstride, char *src, npy_intp sstride, npy_intp n, int swap, PyArrayObject *arr) |
| static void | STRING_copyswap (char *dst, char *src, int NPY_UNUSED(swap), PyArrayObject *arr) |
| static void | UNICODE_copyswap (char *dst, char *src, int swap, PyArrayObject *arr) |
| static npy_bool fname | _nonzero (char *ip, PyArrayObject *ap) |
| static npy_bool | Py_STRING_ISSPACE (char ch) |
| static npy_bool | STRING_nonzero (char *ip, PyArrayObject *ap) |
| static npy_bool | UNICODE_nonzero (npy_ucs4 *ip, PyArrayObject *ap) |
| static npy_bool | OBJECT_nonzero (PyObject **ip, PyArrayObject *ap) |
| static npy_bool | VOID_nonzero (char *ip, PyArrayObject *ap) |
| static int | BOOL_compare (npy_bool *ip1, npy_bool *ip2, PyArrayObject *NPY_UNUSED(ap)) |
| static int TYPE | _compare (@type @*pa,@type @*pb, PyArrayObject *NPY_UNUSED(ap)) |
| static int TYPE | _compare (@type @*pa,@type @*pb) |
| static int | HALF_compare (npy_half *pa, npy_half *pb, PyArrayObject *NPY_UNUSED(ap)) |
| static int | OBJECT_compare (PyObject **ip1, PyObject **ip2, PyArrayObject *NPY_UNUSED(ap)) |
| static int | STRING_compare (char *ip1, char *ip2, PyArrayObject *ap) |
| static int | UNICODE_compare (npy_ucs4 *ip1, npy_ucs4 *ip2, PyArrayObject *ap) |
| static int | VOID_compare (char *ip1, char *ip2, PyArrayObject *ap) |
| static int | BOOL_argmax (npy_bool *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int fname | _argmax (@type @*ip, npy_intp n, npy_intp *max_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int | BOOL_argmin (npy_bool *ip, npy_intp n, npy_intp *min_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int fname | _argmin (@type @*ip, npy_intp n, npy_intp *min_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int | OBJECT_argmax (PyObject **ip, npy_intp n, npy_intp *max_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int fname | _argmax (@type @*ip, npy_intp n, npy_intp *max_ind, PyArrayObject *aip) |
| static int | OBJECT_argmin (PyObject **ip, npy_intp n, npy_intp *min_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int fname | _argmin (@type @*ip, npy_intp n, npy_intp *min_ind, PyArrayObject *aip) |
| NPY_NO_EXPORT void name | _dot (char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, void *NPY_UNUSED(ignore)) |
| static void | BOOL_dot (char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, void *NPY_UNUSED(ignore)) |
| static void | HALF_dot (char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, void *NPY_UNUSED(ignore)) |
| static void | CLONGDOUBLE_dot (char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, void *NPY_UNUSED(ignore)) |
| static void | OBJECT_dot (char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, void *NPY_UNUSED(ignore)) |
| static void | OBJECT_fill (PyObject **buffer, npy_intp length, void *NPY_UNUSED(ignored)) |
| static void NAME | _fill (@type @*buffer, npy_intp length, void *NPY_UNUSED(ignored)) |
| static void | HALF_fill (npy_half *buffer, npy_intp length, void *NPY_UNUSED(ignored)) |
| static void NAME | _fill (@type @*buffer, npy_intp length, void *NPY_UNUSED(ignore)) |
| static void | OBJECT_fillwithscalar (PyObject **buffer, npy_intp length, PyObject **value, void *NPY_UNUSED(ignored)) |
| static void NAME | _fillwithscalar (@type @*buffer, npy_intp length,@type @*value, void *NPY_UNUSED(ignored)) |
| static void name | _fastclip (@type @*in, npy_intp ni,@type @*min,@type @*max,@type @*out) |
| static void name | _fastputmask (@type @*in, npy_bool *mask, npy_intp ni,@type @*vals, npy_intp nv) |
| static int name | _fasttake (@type @*dest,@type @*src, npy_intp *indarray, npy_intp nindarray, npy_intp n_outer, npy_intp m_middle, npy_intp nelem, NPY_CLIPMODE clipmode) |
| NPY_NO_EXPORT int | small_correlate (const char *d_, npy_intp dstride, npy_intp nd, enum NPY_TYPES dtype, const char *k_, npy_intp kstride, npy_intp nk, enum NPY_TYPES ktype, char *out_, npy_intp ostride) |
| NPY_NO_EXPORT PyArray_Descr * | PyArray_DescrFromType (int type) |
| static NpyAuxData * | datetime_dtype_metadata_clone (NpyAuxData *data) |
| NPY_NO_EXPORT int | initialize_builtin_datetime_metadata (void) |
| NPY_NO_EXPORT int | set_typeinfo (PyObject *dict) |
Variables | |
| static PyArray_ArrFuncs _Py NAME | _ArrFuncs |
| static PyArray_Descr from | _Descr |
| static char | _letter_to_num [_MAX_LETTER] |
| static PyArray_Descr * | _builtin_descrs [] |
| #define __ALIGNED | ( | obj, | |
| sz | |||
| ) | ((((size_t) obj) % (sz))==0) |
| #define _GREATER_THAN | ( | a, | |
| b | |||
| ) | ((a) > (b)) |
| #define _HALF_GREATER_THAN | ( | a, | |
| b | |||
| ) | (!npy_half_isnan(a) && npy_half_lt_nonan(b, a)) |
| #define _HALF_LESS_THAN | ( | a, | |
| b | |||
| ) | (!npy_half_isnan(a) && npy_half_lt_nonan(a, b)) |
| #define _LESS_THAN | ( | a, | |
| b | |||
| ) | ((a) < (b)) |
| #define _LESS_THAN_OR_EQUAL | ( | a, | |
| b | |||
| ) | ((a) <= (b)) |
| #define _MAX_LETTER 128 |
| #define _MULTIARRAYMODULE |
| #define _NONZERO | ( | a | ) | ((a) != 0) |
| #define _NPY_UNUSEDBOOL NPY_UNUSED |
| #define _NPY_UNUSEDBYTE NPY_UNUSED |
| #define _NPY_UNUSEDCDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDCFLOAT NPY_UNUSED |
| #define _NPY_UNUSEDCLONGDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDDATETIME NPY_UNUSED |
| #define _NPY_UNUSEDDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDFLOAT NPY_UNUSED |
| #define _NPY_UNUSEDHALF NPY_UNUSED |
| #define _NPY_UNUSEDHALF NPY_UNUSED |
| #define _NPY_UNUSEDINT NPY_UNUSED |
| #define _NPY_UNUSEDLONG NPY_UNUSED |
| #define _NPY_UNUSEDLONGDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDLONGLONG NPY_UNUSED |
| #define _NPY_UNUSEDSHORT NPY_UNUSED |
| #define _NPY_UNUSEDSTRING |
| #define _NPY_UNUSEDTIMEDELTA NPY_UNUSED |
| #define _NPY_UNUSEDUBYTE NPY_UNUSED |
| #define _NPY_UNUSEDUINT NPY_UNUSED |
| #define _NPY_UNUSEDULONG NPY_UNUSED |
| #define _NPY_UNUSEDULONGLONG NPY_UNUSED |
| #define _NPY_UNUSEDUNICODE |
| #define _NPY_UNUSEDUSHORT NPY_UNUSED |
| #define _NPY_UNUSEDVOID |
| #define BOOL_fill NULL |
Referenced by ufunc_frompyfunc().
| #define LT | ( | a, | |
| b | |||
| ) | ((a) < (b) || ((b) != (b) && (a) ==(a))) |
| #define NPY_NO_DEPRECATED_API NPY_API_VERSION |
| #define OBJECT_fastclip NULL |
| #define OBJECT_fastputmask NULL |
| #define OBJECT_fasttake NULL |
| #define PY_SSIZE_T_CLEAN |
| #define PyArray_UCS4_ISSPACE | ( | ch | ) | Py_STRING_ISSPACE((char)ch) |
Py_INCREF(&Py##name##ArrType_Type); \ PyDict_SetItemString(infodict, #name, \ (PyObject *)&Py##name##ArrType_Type)
Referenced by small_correlate().
| #define VOID_argmax NULL |
| #define VOID_argmin NULL |
| #define WHITELEN 6 |
| #define WHITESPACE " \t\n\r\v\f" |
| static int fname _argmax | ( | @type @* | ip, |
| npy_intp | n, | ||
| npy_intp * | max_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
<
| static int fname _argmax | ( | @type @* | ip, |
| npy_intp | n, | ||
| npy_intp * | max_ind, | ||
| PyArrayObject * | aip | ||
| ) | [static] |
| static int fname _argmin | ( | @type @* | ip, |
| npy_intp | n, | ||
| npy_intp * | min_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
<
| static int fname _argmin | ( | @type @* | ip, |
| npy_intp | n, | ||
| npy_intp * | min_ind, | ||
| PyArrayObject * | aip | ||
| ) | [static] |
References PyArray_CGT.
| static int TYPE _compare | ( | @type @* | pa, |
| @type @* | pb, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
<
| static void fname _copyswap | ( | void * | dst, |
| void * | src, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
| static void fname _copyswapn | ( | void * | dst, |
| npy_intp | dstride, | ||
| void * | src, | ||
| npy_intp | sstride, | ||
| npy_intp | n, | ||
| int | swap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
</blockquote>
| static void fname _copyswapn | ( | void * | dst, |
| npy_intp | dstride, | ||
| void * | src, | ||
| npy_intp | sstride, | ||
| npy_intp | n, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
</blockquote>
| static void name _dot | ( | char * | ip1, |
| npy_intp | is1, | ||
| char * | ip2, | ||
| npy_intp | is2, | ||
| char * | op, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) |
</blockquote>
<
| static void name _fastclip | ( | @type @* | in, |
| npy_intp | ni, | ||
| @type @* | min, | ||
| @type @* | max, | ||
| @type @* | out | ||
| ) | [static] |
| static void name _fastputmask | ( | @type @* | in, |
| npy_bool * | mask, | ||
| npy_intp | ni, | ||
| @type @* | vals, | ||
| npy_intp | nv | ||
| ) | [static] |
</blockquote>
References PyArray_ArrFuncs::castdict, and _PyArray_Descr::f.
| static int name _fasttake | ( | @type @* | dest, |
| @type @* | src, | ||
| npy_intp * | indarray, | ||
| npy_intp | nindarray, | ||
| npy_intp | n_outer, | ||
| npy_intp | m_middle, | ||
| npy_intp | nelem, | ||
| NPY_CLIPMODE | clipmode | ||
| ) | [static] |
</blockquote>
</blockquote>
References ArrType_Type, and PyArrayDescr_Type.
References _to_BOOL().
| static void NAME _fillwithscalar | ( | @type @* | buffer, |
| npy_intp | length, | ||
| @type @* | value, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
</blockquote>
| static int fname _fromstr | ( | char * | str, |
| void * | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
</blockquote>
References kind().
| static npy_bool fname _nonzero | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int fname _scan | ( | FILE * | fp, |
| @type @* | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignored | ||
| ) | [static] |
References _unaligned_strided_byte_copy().
| static int fname _scan | ( | FILE * | fp, |
| @type @* | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignore2 | ||
| ) | [static] |
| static int NAME _setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | vap | ||
| ) | [static] |
<
Referenced by _to_BOOL().
| static void FROMTYPE _to_BOOL | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
</blockquote>
References _setitem(), and TOTYPE().
Referenced by _fill().
| static void TYPE _to_HALF | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
</blockquote>
| static void FROMTYPE _to_OBJECT | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | vaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
npy_byte, npy_ubyte, npy_short, npy_ushort, npy_int, npy_uint, npy_long, npy_ulong, npy_longlong, npy_ulonglong, npy_half, npy_float, npy_double, npy_longdouble, npy_cfloat, npy_cdouble, npy_clongdouble, npy_char, npy_char, npy_char, PyObject *, npy_datetime, npy_timedelta#
| static int BOOL_argmax | ( | npy_bool * | ip, |
| npy_intp | n, | ||
| npy_intp * | max_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
| static int BOOL_argmin | ( | npy_bool * | ip, |
| npy_intp | n, | ||
| npy_intp * | min_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
| static int BOOL_compare | ( | npy_bool * | ip1, |
| npy_bool * | ip2, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
| static void BOOL_dot | ( | char * | ip1, |
| npy_intp | is1, | ||
| char * | ip2, | ||
| npy_intp | is2, | ||
| char * | op, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
| static int BOOL_fromstr | ( | char * | str, |
| void * | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
References __ALIGNED, and NPY_COPY_PYOBJECT_PTR.
| static int BOOL_scan | ( | FILE * | fp, |
| npy_bool * | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignore2 | ||
| ) | [static] |
| static void CLONGDOUBLE_dot | ( | char * | ip1, |
| npy_intp | is1, | ||
| char * | ip2, | ||
| npy_intp | is2, | ||
| char * | op, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
| static PyObject* CLONGDOUBLE_getitem | ( | void * | ip, |
| void * | ap | ||
| ) | [static] |
| static void CLONGDOUBLE_to_HALF | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
| static NpyAuxData* datetime_dtype_metadata_clone | ( | NpyAuxData * | data | ) | [static] |
| static PyObject* DATETIME_getitem | ( | void * | ip, |
| void * | vap | ||
| ) | [static] |
| static int DATETIME_setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | vap | ||
| ) | [static] |
| static int HALF_compare | ( | npy_half * | pa, |
| npy_half * | pb, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
| static void HALF_dot | ( | char * | ip1, |
| npy_intp | is1, | ||
| char * | ip2, | ||
| npy_intp | is2, | ||
| char * | op, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
| static int HALF_fromstr | ( | char * | str, |
| void * | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
| static int HALF_scan | ( | FILE * | fp, |
| npy_half * | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignored | ||
| ) | [static] |
| static void HALF_to_BOOL | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
| static void HALF_to_CLONGDOUBLE | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
| NPY_NO_EXPORT int initialize_builtin_datetime_metadata | ( | void | ) |
| static int LONGDOUBLE_fromstr | ( | char * | str, |
| void * | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
| static PyObject* LONGDOUBLE_getitem | ( | void * | ip, |
| void * | ap | ||
| ) | [static] |
| static int LONGDOUBLE_scan | ( | FILE * | fp, |
| npy_longdouble * | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignored | ||
| ) | [static] |
| static int LONGDOUBLE_setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | vap | ||
| ) | [static] |
| static double MyPyFloat_AsDouble | ( | PyObject * | obj | ) | [static] |
| static npy_half MyPyFloat_AsHalf | ( | PyObject * | obj | ) | [static] |
References MyPyFloat_AsDouble(), and npy_double_to_half().
| static PyObject* MyPyFloat_FromHalf | ( | npy_half | h | ) | [static] |
References npy_half_to_double().
| static npy_longlong npy_strtoll | ( | const char * | str, |
| char ** | endptr, | ||
| int | base | ||
| ) | [static] |
| static npy_ulonglong npy_strtoull | ( | const char * | str, |
| char ** | endptr, | ||
| int | base | ||
| ) | [static] |
| static int OBJECT_argmax | ( | PyObject ** | ip, |
| npy_intp | n, | ||
| npy_intp * | max_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
| static int OBJECT_argmin | ( | PyObject ** | ip, |
| npy_intp | n, | ||
| npy_intp * | min_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
| static int OBJECT_compare | ( | PyObject ** | ip1, |
| PyObject ** | ip2, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
| static void OBJECT_copyswap | ( | PyObject ** | dst, |
| PyObject ** | src, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
| static void OBJECT_copyswapn | ( | PyObject ** | dst, |
| npy_intp | dstride, | ||
| PyObject ** | src, | ||
| npy_intp | sstride, | ||
| npy_intp | n, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
| static void OBJECT_dot | ( | char * | ip1, |
| npy_intp | is1, | ||
| char * | ip2, | ||
| npy_intp | is2, | ||
| char * | op, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
| static void OBJECT_fill | ( | PyObject ** | buffer, |
| npy_intp | length, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
| static void OBJECT_fillwithscalar | ( | PyObject ** | buffer, |
| npy_intp | length, | ||
| PyObject ** | value, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
| static PyObject* OBJECT_getitem | ( | void * | ip, |
| void * | NPY_UNUSEDap | ||
| ) | [static] |
References NPY_ARRAY_ALIGNED, and PyArray_ENABLEFLAGS().
| static npy_bool OBJECT_nonzero | ( | PyObject ** | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int OBJECT_setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | NPY_UNUSEDap | ||
| ) | [static] |
References PyArray_Dims::ptr, and PyDimMem_FREE.
| static npy_bool Py_STRING_ISSPACE | ( | char | ch | ) | [static] |
| NPY_NO_EXPORT int PyArray_CopyObject | ( | PyArrayObject * | dest, |
| PyObject * | src_object | ||
| ) |
Referenced by array_subscript().
| NPY_NO_EXPORT PyArray_Descr* PyArray_DescrFromType | ( | int | type | ) |
Referenced by _array_find_python_scalar_type(), _array_fromobject(), _descr_from_subtype(), _is_default_descr(), _pyarray_correlate(), apply_business_day_count(), array_diagonal(), business_day_offset(), fast_scalar_power(), get_nbo_datetime_to_string_transfer_function(), object_ufunc_type_resolver(), PyArray_ArgMax(), PyArray_CanCastScalar(), PyArray_CanCoerceScalar(), PyArray_DTypeFromObjectHelper(), PyArray_FillWithScalar(), PyUFunc_DefaultLegacyInnerLoopSelector(), PyUFunc_MultiplicationTypeResolver(), and type_tuple_userloop_type_resolver().
| NPY_NO_EXPORT int set_typeinfo | ( | PyObject * | dict | ) |
</blockquote>
</blockquote>
| NPY_NO_EXPORT int small_correlate | ( | const char * | d_, |
| npy_intp | dstride, | ||
| npy_intp | nd, | ||
| enum NPY_TYPES | dtype, | ||
| const char * | k_, | ||
| npy_intp | kstride, | ||
| npy_intp | nk, | ||
| enum NPY_TYPES | ktype, | ||
| char * | out_, | ||
| npy_intp | ostride | ||
| ) |
References SETTYPE.
| static int STRING_compare | ( | char * | ip1, |
| char * | ip2, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static void STRING_copyswap | ( | char * | dst, |
| char * | src, | ||
| int | NPY_UNUSEDswap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static void STRING_copyswapn | ( | char * | dst, |
| npy_intp | dstride, | ||
| char * | src, | ||
| npy_intp | sstride, | ||
| npy_intp | n, | ||
| int | NPY_UNUSEDswap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
References _unpack_field(), _PyArray_Descr::fields, NPY_FALSE, NPY_TITLE_KEY, PyArray_DESCR, PyArray_FLAGS, and PyArray_HASFIELDS.
| static PyObject* STRING_getitem | ( | void * | ip, |
| void * | vap | ||
| ) | [static] |
| static npy_bool STRING_nonzero | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int STRING_setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | vap | ||
| ) | [static] |
| static NPY_INLINE npy_longdouble string_to_long_double | ( | PyObject * | op | ) | [static] |
| static PyObject* TIMEDELTA_getitem | ( | void * | ip, |
| void * | vap | ||
| ) | [static] |
| static int TIMEDELTA_setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | vap | ||
| ) | [static] |
References npy_half_to_float().
| static void from _to_ to | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | vaip, | ||
| void * | vaop | ||
| ) | [static] |
<blockquote> BYTE, UBYTE, SHORT, USHORT, INT, UINT, LONG, ULONG, LONGLONG, ULONGLONG, HALF, FLOAT, DOUBLE, LONGDOUBLE, CFLOAT, CDOUBLE, CLONGDOUBLE, STRING, UNICODE, VOID, DATETIME, TIMEDELTA)*3#</blockquote>
<blockquote> BYTE, UBYTE, SHORT, USHORT, INT, UINT, LONG, ULONG, LONGLONG, ULONGLONG, HALF, FLOAT, DOUBLE, LONGDOUBLE, CFLOAT, CDOUBLE, CLONGDOUBLE, DATETIME, TIMEDELTA)*3#</blockquote>
</blockquote>
References _strided_byte_swap(), and _unaligned_strided_byte_copy().
| static void FROMTYPE _to_ TOTYPE | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
</blockquote>
</blockquote>
#one = 1*10, NPY_HALF_ONE, 1*5# #zero = 0*10, NPY_HALF_ZERO, 0*5#
Referenced by _to_BOOL().
| static void OBJECT_to_ TOTYPE | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | aop | ||
| ) | [static] |
References npy_double_to_half(), and NumPyOS_ascii_ftolf().
| static type MyPyLong_AsUnsigned Type | ( | PyObject * | obj | ) | [static] |
| static void HALF_to_ TYPE | ( | void * | input, |
| void * | output, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDaip, | ||
| void * | NPY_UNUSEDaop | ||
| ) | [static] |
References NPY_FALSE.
| static int UNICODE_compare | ( | npy_ucs4 * | ip1, |
| npy_ucs4 * | ip2, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static void UNICODE_copyswap | ( | char * | dst, |
| char * | src, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static void UNICODE_copyswapn | ( | char * | dst, |
| npy_intp | dstride, | ||
| char * | src, | ||
| npy_intp | sstride, | ||
| npy_intp | n, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static PyObject* UNICODE_getitem | ( | void * | ip, |
| void * | vap | ||
| ) | [static] |
| static npy_bool UNICODE_nonzero | ( | npy_ucs4 * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int UNICODE_setitem | ( | PyObject * | op, |
| void * | ov, | ||
| void * | vap | ||
| ) | [static] |
| static int VOID_compare | ( | char * | ip1, |
| char * | ip2, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
References blas_stride(), and NPY_CBLAS_CHUNK.
| static void VOID_copyswap | ( | char * | dst, |
| char * | src, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static void VOID_copyswapn | ( | char * | dst, |
| npy_intp | dstride, | ||
| char * | src, | ||
| npy_intp | sstride, | ||
| npy_intp | n, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static PyObject* VOID_getitem | ( | void * | input, |
| void * | vap | ||
| ) | [static] |
| static npy_bool VOID_nonzero | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int VOID_setitem | ( | PyObject * | op, |
| void * | input, | ||
| void * | vap | ||
| ) | [static] |
static PyArray_ArrFuncs _Py NAME _ArrFuncs [static] |
</blockquote>
<blockquote>
</blockquote>
</blockquote>
PyArray_Descr* _builtin_descrs[] [static] |
{
&BOOL_Descr,
&BYTE_Descr,
&UBYTE_Descr,
&SHORT_Descr,
&USHORT_Descr,
&INT_Descr,
&UINT_Descr,
&LONG_Descr,
&ULONG_Descr,
&LONGLONG_Descr,
&ULONGLONG_Descr,
&FLOAT_Descr,
&DOUBLE_Descr,
&LONGDOUBLE_Descr,
&CFLOAT_Descr,
&CDOUBLE_Descr,
&CLONGDOUBLE_Descr,
&OBJECT_Descr,
&STRING_Descr,
&UNICODE_Descr,
&VOID_Descr,
&DATETIME_Descr,
&TIMEDELTA_Descr,
&HALF_Descr
}
NPY_NO_EXPORT PyArray_Descr from _Descr [static] |
char _letter_to_num[_MAX_LETTER] [static] |