numpy
2.0.0
|
#include "Python.h"
#include "structmember.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 "usertypes.h"
#include "_datetime.h"
#include "arrayobject.h"
#include "numpyos.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 | BITSOF_INTP CHAR_BIT*SIZEOF_PY_INTPTR_T |
#define | BITSOF_BYTE CHAR_BIT |
#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 PyObject *TYPE | _getitem (char *ip, PyArrayObject *ap) |
static int TYPE | _setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static PyObject * | LONGDOUBLE_getitem (char *ip, PyArrayObject *ap) |
static int | LONGDOUBLE_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static PyObject * | CLONGDOUBLE_getitem (char *ip, PyArrayObject *ap) |
static PyObject * | UNICODE_getitem (char *ip, PyArrayObject *ap) |
static int | UNICODE_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static PyObject * | STRING_getitem (char *ip, PyArrayObject *ap) |
static int | STRING_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static PyObject * | OBJECT_getitem (char *ip, PyArrayObject *ap) |
static int | OBJECT_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static PyObject * | VOID_getitem (char *ip, PyArrayObject *ap) |
NPY_NO_EXPORT int | PyArray_CopyObject (PyArrayObject *, PyObject *) |
static int | VOID_setitem (PyObject *op, char *ip, PyArrayObject *ap) |
static PyObject * | DATETIME_getitem (char *ip, PyArrayObject *ap) |
static PyObject * | TIMEDELTA_getitem (char *ip, PyArrayObject *ap) |
static int | DATETIME_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static int | TIMEDELTA_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
static void FROMTYPE _to_ | TOTYPE (@fromtype @*ip,@totype @*op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void TYPE | _to_HALF (@type @*ip, npy_half *op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void HALF_to_ | TYPE (npy_half *ip,@type @*op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void TYPE | _to_HALF (@itype @*ip, npy_half *op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void HALF_to_ | TYPE (npy_half *ip,@itype @*op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void | CLONGDOUBLE_to_HALF (npy_longdouble *ip, npy_half *op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void | HALF_to_CLONGDOUBLE (npy_half *ip, npy_longdouble *op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void FROMTYPE | _to_BOOL (@fromtype @*ip, npy_bool *op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void | HALF_to_BOOL (npy_half *ip, npy_bool *op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void BOOL_to_ | TOTYPE (npy_bool *ip,@totype @*op, npy_intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
static void FROMTYPE | _to_OBJECT (@fromtype @*ip, PyObject **op, npy_intp n, PyArrayObject *aip, PyArrayObject *NPY_UNUSED(aop)) |
static void OBJECT_to_ | TOTYPE (PyObject **ip,@totype @*op, npy_intp n, PyArrayObject *_NPY_UNUSED @TOTYPE @(aip), PyArrayObject *aop) |
static void from _to_ | to (@fromtyp @*ip,@totyp @*op, npy_intp n, PyArrayObject *aip, PyArrayObject *aop) |
static int fname | _scan (FILE *fp,@type @*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,@type @*ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
static int | HALF_fromstr (char *str, npy_half *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
static int | BOOL_fromstr (char *str, npy_bool *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 fname | _argmax (@type @*ip, npy_intp n, npy_intp *max_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) |
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 name | _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 | 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 PyArray_Descr * | PyArray_DescrFromType (int type) |
static NpyAuxData * | datetime_dtype_metadata_clone (NpyAuxData *data) |
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 BITSOF_BYTE CHAR_BIT |
#define BITSOF_INTP CHAR_BIT*SIZEOF_PY_INTPTR_T |
#define BOOL_fill NULL |
Referenced by HALF_compare(), and 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)
#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] |
<
Referenced by OBJECT_dot().
static int fname _argmin | ( | @type @* | ip, |
npy_intp | n, | ||
npy_intp * | min_ind, | ||
PyArrayObject * | aip | ||
) | [static] |
static int TYPE _compare | ( | @type @* | pa, |
@type @* | pb, | ||
PyArrayObject * | NPY_UNUSEDap | ||
) | [static] |
Referenced by HALF_compare().
<
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 | ||
) | [static] |
</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>
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>
static void NAME _fillwithscalar | ( | @type @* | buffer, |
npy_intp | length, | ||
@type @* | value, | ||
void * | NPY_UNUSEDignored | ||
) | [static] |
</blockquote>
static int fname _fromstr | ( | char * | str, |
@type @* | ip, | ||
char ** | endptr, | ||
PyArray_Descr * | NPY_UNUSEDignore | ||
) | [static] |
#func = (l, ul)*5, l, l# #btype = (npy_long, npy_ulong)*5, npy_long, npy_long#
static PyObject *TYPE _getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
</blockquote>
References kind(), and PyArray_IsScalar.
Referenced by TOTYPE().
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] |
static int fname _scan | ( | FILE * | fp, |
@type @* | ip, | ||
void * | NPY_UNUSEDignore, | ||
PyArray_Descr * | NPY_UNUSEDignore2 | ||
) | [static] |
static int NAME _setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
<
Referenced by _to_BOOL(), and TOTYPE().
static void FROMTYPE _to_BOOL | ( | @fromtype @* | ip, |
npy_bool * | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
</blockquote>
References _setitem(), and TOTYPE().
Referenced by HALF_dot().
static void TYPE _to_HALF | ( | @type @* | ip, |
npy_half * | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
</blockquote>
static void TYPE _to_HALF | ( | @itype @* | ip, |
npy_half * | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
static void FROMTYPE _to_OBJECT | ( | @fromtype @* | ip, |
PyObject ** | op, | ||
npy_intp | n, | ||
PyArrayObject * | aip, | ||
PyArrayObject * | 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#
Referenced by HALF_dot().
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, |
npy_bool * | ip, | ||
char ** | endptr, | ||
PyArray_Descr * | NPY_UNUSEDignore | ||
) | [static] |
static int BOOL_scan | ( | FILE * | fp, |
npy_bool * | ip, | ||
void * | NPY_UNUSEDignore, | ||
PyArray_Descr * | NPY_UNUSEDignore2 | ||
) | [static] |
static PyObject* CLONGDOUBLE_getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static void CLONGDOUBLE_to_HALF | ( | npy_longdouble * | ip, |
npy_half * | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
static NpyAuxData* datetime_dtype_metadata_clone | ( | NpyAuxData * | data | ) | [static] |
static PyObject* DATETIME_getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static int DATETIME_setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
static int HALF_compare | ( | npy_half * | pa, |
npy_half * | pb, | ||
PyArrayObject * | NPY_UNUSEDap | ||
) | [static] |
static int HALF_fromstr | ( | char * | str, |
npy_half * | 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 | ( | npy_half * | ip, |
npy_bool * | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
static void HALF_to_CLONGDOUBLE | ( | npy_half * | ip, |
npy_longdouble * | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
int initialize_builtin_datetime_metadata | ( | void | ) |
static PyObject* LONGDOUBLE_getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
References PyArray_DESCR, and PyArray_Scalar().
static int LONGDOUBLE_setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
References PyArray_ISALIGNED, PyArray_ISNOTSWAPPED, PyArray_ITEMSIZE, and PyUnicode_FromUCS4().
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 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] |
References _argmin(), _Descr, ArrType_Type, PyArrayDescr_Type, and suff().
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] |
References ArrType_Type, and PyArrayDescr_Type.
static PyObject* OBJECT_getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
References NPY_ARRAY_ALIGNED, and PyArray_CLEARFLAGS().
static npy_bool OBJECT_nonzero | ( | PyObject ** | ip, |
PyArrayObject * | ap | ||
) | [static] |
static int OBJECT_setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
static npy_bool Py_STRING_ISSPACE | ( | char | ch | ) | [static] |
Referenced by OBJECT_copyswapn().
NPY_NO_EXPORT int PyArray_CopyObject | ( | PyArrayObject * | dest, |
PyObject * | src_object | ||
) |
Referenced by array_ass_sub_simple(), and array_getfield().
NPY_NO_EXPORT PyArray_Descr* PyArray_DescrFromType | ( | int | type | ) |
Referenced by _array_find_python_scalar_type(), _array_from_buffer_3118(), _descr_from_subtype(), _prepend_ones(), _pyarray_correlate(), apply_business_day_count(), business_day_offset(), can_cast_scalar_to(), dtype_kind_to_simplified_ordering(), get_nbo_datetime_to_string_transfer_function(), local_argsearch_right(), object_ufunc_type_resolver(), PyArray_ArgMax(), PyArray_As1D(), PyArray_CanCastArrayTo(), PyArray_Concatenate(), PyArray_DescrFromTypeObject(), PyUFunc_MultiplicationTypeResolver(), ufunc_masker_data_clone(), and unmasked_ufunc_loop_as_masked().
NPY_NO_EXPORT int set_typeinfo | ( | PyObject * | dict | ) |
</blockquote>
</blockquote>
</blockquote>
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 _PyArray_Descr::fields, NPY_FALSE, NPY_TITLE_KEY, PyArray_DESCR, PyArray_FLAGS, and PyArray_HASFIELDS.
static PyObject* STRING_getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static npy_bool STRING_nonzero | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
References PyArray_free, and PyArray_malloc.
static int STRING_setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
static PyObject* TIMEDELTA_getitem | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static int TIMEDELTA_setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
References npy_half_to_float().
static void from _to_ to | ( | @fromtyp @* | ip, |
@totyp @* | op, | ||
npy_intp | n, | ||
PyArrayObject * | aip, | ||
PyArrayObject * | aop | ||
) | [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>
Referenced by TOTYPE().
static void FROMTYPE _to_ TOTYPE | ( | @fromtype @* | ip, |
@totype @* | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
</blockquote>
</blockquote>
References NPY_FALSE.
Referenced by _to_BOOL().
static void BOOL_to_ TOTYPE | ( | npy_bool * | ip, |
@totype @* | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
#one = 1*10, NPY_HALF_ONE, 1*5# #zero = 0*10, NPY_HALF_ZERO, 0*5#
References _getitem(), _setitem(), PyArray_DESCR, and to().
static void OBJECT_to_ TOTYPE | ( | PyObject ** | ip, |
@totype @* | op, | ||
npy_intp | n, | ||
PyArrayObject *_NPY_UNUSED @TOTYPE @ | aip, | ||
PyArrayObject * | aop | ||
) | [static] |
static type MyPyLong_AsUnsigned Type | ( | PyObject * | obj | ) | [static] |
static void HALF_to_ TYPE | ( | npy_half * | ip, |
@type @* | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
static void HALF_to_ TYPE | ( | npy_half * | ip, |
@itype @* | op, | ||
npy_intp | n, | ||
PyArrayObject * | NPY_UNUSEDaip, | ||
PyArrayObject * | NPY_UNUSEDaop | ||
) | [static] |
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 | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static npy_bool UNICODE_nonzero | ( | npy_ucs4 * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static int UNICODE_setitem | ( | PyObject * | op, |
char * | ov, | ||
PyArrayObject * | ap | ||
) | [static] |
static int VOID_compare | ( | char * | ip1, |
char * | ip2, | ||
PyArrayObject * | ap | ||
) | [static] |
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 | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static npy_bool VOID_nonzero | ( | char * | ip, |
PyArrayObject * | ap | ||
) | [static] |
static int VOID_setitem | ( | PyObject * | op, |
char * | ip, | ||
PyArrayObject * | ap | ||
) | [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] |