diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-02-03 01:24:58 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-02-04 17:54:36 -0700 |
commit | 38b0a6eae695aa63696b11a33179d4cb3629553d (patch) | |
tree | d9747ba237c443c251e813119492bba1982edbb4 /numpy/linalg | |
parent | acad872c5bb8138cd2b0a065830cb88270f1d55f (diff) | |
download | numpy-38b0a6eae695aa63696b11a33179d4cb3629553d.tar.gz |
UPD: Use prefixed macros in lapack_litemodule.c.
Also included ndarrayobject.h instead of noprefix.h.
Diffstat (limited to 'numpy/linalg')
-rw-r--r-- | numpy/linalg/lapack_litemodule.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/numpy/linalg/lapack_litemodule.c b/numpy/linalg/lapack_litemodule.c index e83d0f228..3d8a0dd5b 100644 --- a/numpy/linalg/lapack_litemodule.c +++ b/numpy/linalg/lapack_litemodule.c @@ -4,7 +4,7 @@ More modifications by Jeff Whitaker */ #include "Python.h" -#include "numpy/noprefix.h" +#include "numpy/ndarrayobject.h" #ifdef NO_APPEND_FORTRAN # define FNAME(x) x @@ -105,7 +105,7 @@ check_object(PyObject *ob, int t, char *obname, "Expected an array for parameter %s in lapack_lite.%s", obname, funname); return 0; - } else if (!(((PyArrayObject *)ob)->flags & CONTIGUOUS)) { + } else if (!(((PyArrayObject *)ob)->flags & NPY_CONTIGUOUS)) { PyErr_Format(LapackError, "Parameter %s is not contiguous in lapack_lite.%s", obname, funname); @@ -450,21 +450,21 @@ lapack_lite_dgesdd(PyObject *NPY_UNUSED(self), PyObject *args) Change it to the maximum of the minimum and the optimal. */ long work0 = (long) *DDATA(work); - int mn = MIN(m,n); - int mx = MAX(m,n); + int mn = PyArray_MIN(m,n); + int mx = PyArray_MAX(m,n); switch(jobz){ case 'N': - work0 = MAX(work0,3*mn + MAX(mx,6*mn)+500); + work0 = PyArray_MAX(work0,3*mn + PyArray_MAX(mx,6*mn)+500); break; case 'O': - work0 = MAX(work0,3*mn*mn + \ - MAX(mx,5*mn*mn+4*mn+500)); + work0 = PyArray_MAX(work0,3*mn*mn + \ + PyArray_MAX(mx,5*mn*mn+4*mn+500)); break; case 'S': case 'A': - work0 = MAX(work0,3*mn*mn + \ - MAX(mx,4*mn*(mn+1))+500); + work0 = PyArray_MAX(work0,3*mn*mn + \ + PyArray_MAX(mx,4*mn*(mn+1))+500); break; } *DDATA(work) = (double) work0; |