Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 902dc40

Browse files
committed
Move generalised ufunc functionality to the gen_ufuncs branch.
1 parent 65839d7 commit 902dc40

5 files changed

Lines changed: 14 additions & 510 deletions

File tree

THANKS.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ Andrew Straw for help with http://www.scipy.org, documentation, and testing.
3737
David Cournapeau for scons build support, doc-and-bug fixes, and code contributions including fast_clipping.
3838
Pierre Gerard-Marchant for his rewrite of the masked array functionality.
3939
Roberto de Almeida for the buffered array iterator.
40-
Wenjie Fu and Hans-Andreas Engel for the generalised ufunc infrastructure.

numpy/core/code_generators/ufunc_api_order.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
PyUFunc_FromFuncAndData
2-
PyUFunc_FromFuncAndDataAndSignature
32
PyUFunc_RegisterLoopForType
43
PyUFunc_GenericFunction
54
PyUFunc_f_f_As_d_d

numpy/core/include/numpy/ndarrayobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" CONFUSE_EMACS
3939
#define NPY_SUCCEED 1
4040

4141
/* Helpful to distinguish what is installed */
42-
#define NPY_VERSION 0x0100000B
42+
#define NPY_VERSION 0x0100000A
4343

4444
/* Some platforms don't define bool, long long, or long double.
4545
Handle that here.

numpy/core/include/numpy/ufuncobject.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ typedef struct {
1919
void *ptr;
2020
PyObject *obj;
2121
PyObject *userloops;
22-
23-
/* generalized ufunc */
24-
int core_enabled; /* 0 for scalar ufunc; 1 for generalized ufunc */
25-
int core_num_dim_ix; /* number of distinct dimension names in
26-
signature */
27-
28-
/* dimension indices of input/output argument k are stored in
29-
core_dim_ixs[core_offsets[k]..core_offsets[k]+core_num_dims[k]-1] */
30-
int *core_num_dims; /* numbers of core dimensions of each argument */
31-
int *core_dim_ixs; /* dimension indices in a flatted form; indices
32-
are in the range of [0,core_num_dim_ix) */
33-
int *core_offsets; /* positions of 1st core dimensions of each
34-
argument in core_dim_ixs */
35-
char *core_signature; /* signature string for printing purpose */
3622
} PyUFuncObject;
3723

3824
#include "arrayobject.h"
@@ -136,11 +122,6 @@ typedef struct {
136122
int notimplemented; /* The loop caused notimplemented */
137123
int objfunc; /* This loop calls object functions
138124
(an inner-loop function with argument types */
139-
140-
/* generalized ufunc */
141-
npy_intp *core_dim_sizes; /* stores sizes of core dimensions;
142-
contains 1 + core_num_dim_ix elements */
143-
npy_intp *core_strides; /* strides of loop and core dimensions */
144125
} PyUFuncLoopObject;
145126

146127
/* Could make this more clever someday */

0 commit comments

Comments
 (0)