diff options
author | David Cournapeau <cournape@gmail.com> | 2010-02-01 10:56:51 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2010-02-01 10:56:51 +0000 |
commit | 41ba0740639e9fbb11f98f017e3afdd26a30782c (patch) | |
tree | b67251065b0db661a783b9ab3ef8134ba1e0e1ae | |
parent | 5dc876da5f2d6b23de7491f5dfdd9037f6ad3ef1 (diff) | |
download | numpy-41ba0740639e9fbb11f98f017e3afdd26a30782c.tar.gz |
BUG: fix performance issue (#1308).
-rw-r--r-- | numpy/core/src/multiarray/multiarraymodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/multiarraymodule.c b/numpy/core/src/multiarray/multiarraymodule.c index 147b0bcfa..d0ef1df35 100644 --- a/numpy/core/src/multiarray/multiarraymodule.c +++ b/numpy/core/src/multiarray/multiarraymodule.c @@ -626,12 +626,12 @@ PyArray_InnerProduct(PyObject *op1, PyObject *op2) typec = PyArray_DescrFromType(typenum); Py_INCREF(typec); - ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 0, 0, BEHAVED, NULL); + ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 0, 0, ALIGNED, NULL); if (ap1 == NULL) { Py_DECREF(typec); return NULL; } - ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 0, 0, BEHAVED, NULL); + ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 0, 0, ALIGNED, NULL); if (ap2 == NULL) { goto fail; } @@ -733,12 +733,12 @@ PyArray_MatrixProduct(PyObject *op1, PyObject *op2) typenum = PyArray_ObjectType(op2, typenum); typec = PyArray_DescrFromType(typenum); Py_INCREF(typec); - ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 0, 0, BEHAVED, NULL); + ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 0, 0, ALIGNED, NULL); if (ap1 == NULL) { Py_DECREF(typec); return NULL; } - ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 0, 0, BEHAVED, NULL); + ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 0, 0, ALIGNED, NULL); if (ap2 == NULL) { goto fail; } |