diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-05-14 19:38:50 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-05-14 19:38:50 -0500 |
commit | d85f7aa465cf854e2be83f67f39f058660348487 (patch) | |
tree | dd230fa18ae10c58f75725e95eb5920a3d0d0c37 /numpy/core | |
parent | 1987caeb28c8a1eb0ba422117d47f54c4c11c550 (diff) | |
download | numpy-d85f7aa465cf854e2be83f67f39f058660348487.tar.gz |
Another name change to RegisterLoopForDescr
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/code_generators/numpy_api.py | 2 | ||||
-rw-r--r-- | numpy/core/src/umath/struct_ufunc_test.c.src | 2 | ||||
-rw-r--r-- | numpy/core/src/umath/test_rational.c.src | 4 | ||||
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/code_generators/numpy_api.py b/numpy/core/code_generators/numpy_api.py index 2354f532f..152d0f948 100644 --- a/numpy/core/code_generators/numpy_api.py +++ b/numpy/core/code_generators/numpy_api.py @@ -384,7 +384,7 @@ ufunc_funcs_api = { # End 1.6 API 'PyUFunc_DefaultTypeResolver': 39, 'PyUFunc_ValidateCasting': 40, - 'PyUFunc_RegisterLoopByDescr': 41, + 'PyUFunc_RegisterLoopForDescr': 41, } # List of all the dicts which define the C API diff --git a/numpy/core/src/umath/struct_ufunc_test.c.src b/numpy/core/src/umath/struct_ufunc_test.c.src index fe3ef0bb1..4bd24559f 100644 --- a/numpy/core/src/umath/struct_ufunc_test.c.src +++ b/numpy/core/src/umath/struct_ufunc_test.c.src @@ -106,7 +106,7 @@ PyMODINIT_FUNC initstruct_ufunc_test(void) dtypes[1] = dtype; dtypes[2] = dtype; - PyUFunc_RegisterLoopByDescr(add_triplet, + PyUFunc_RegisterLoopForDescr(add_triplet, dtype, &add_uint64_triplet, dtypes, diff --git a/numpy/core/src/umath/test_rational.c.src b/numpy/core/src/umath/test_rational.c.src index e410572aa..f9153b87c 100644 --- a/numpy/core/src/umath/test_rational.c.src +++ b/numpy/core/src/umath/test_rational.c.src @@ -1322,7 +1322,7 @@ PyMODINIT_FUNC inittest_rational(void) { PyModule_AddObject(m,"test_add",(PyObject*)ufunc); } - /* Create test ufunc with rational types using RegisterLoopByDescr */ + /* Create test ufunc with rational types using RegisterLoopForDescr */ { PyObject* ufunc = PyUFunc_FromFuncAndData(0,0,0,0,2,1, PyUFunc_None,(char*)"test_add_rationals", @@ -1333,7 +1333,7 @@ PyMODINIT_FUNC inittest_rational(void) { PyArray_Descr* types[3] = {&npyrational_descr, &npyrational_descr, &npyrational_descr}; - if (PyUFunc_RegisterLoopByDescr((PyUFuncObject*)ufunc, &npyrational_descr, + if (PyUFunc_RegisterLoopForDescr((PyUFuncObject*)ufunc, &npyrational_descr, rational_ufunc_test_add_rationals, types, 0) < 0) { goto fail; } diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 6e7927b89..8a028096a 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4439,7 +4439,7 @@ _loop1d_list_free(void *ptr) */ /*UFUNC_API*/ NPY_NO_EXPORT int -PyUFunc_RegisterLoopByDescr(PyUFuncObject *ufunc, +PyUFunc_RegisterLoopForDescr(PyUFuncObject *ufunc, PyArray_Descr *user_dtype, PyUFuncGenericFunction function, PyArray_Descr **arg_dtypes, |