diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-25 22:06:02 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-25 22:06:02 +0000 |
commit | 9bda193417b278dce14c22b1ac5c8bc1a6717365 (patch) | |
tree | 3d5139771323e3cd612ce864f01a356b6219e832 /numpy/doc/pyrex | |
parent | e116574cde770234beffaf2be6cd542472679313 (diff) | |
download | numpy-9bda193417b278dce14c22b1ac5c8bc1a6717365.tar.gz |
Add broadcasting behavior to random-number generators. Fix cholesky to keep matrix return.
Diffstat (limited to 'numpy/doc/pyrex')
-rw-r--r-- | numpy/doc/pyrex/c_numpy.pxd | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/numpy/doc/pyrex/c_numpy.pxd b/numpy/doc/pyrex/c_numpy.pxd index 8fd978f4e..1cf4558bf 100644 --- a/numpy/doc/pyrex/c_numpy.pxd +++ b/numpy/doc/pyrex/c_numpy.pxd @@ -1,6 +1,4 @@ -# :Author: Robert Kern -# :Copyright: 2004, Enthought, Inc. -# :License: BSD Style +# :Author: Travis Oliphant cdef extern from "numpy/arrayobject.h": @@ -60,6 +58,9 @@ cdef extern from "numpy/arrayobject.h": NPY_UPDATE_ALL + cdef enum defines: + NPY_MAXDIMS + ctypedef struct npy_cdouble: double real double imag @@ -84,6 +85,19 @@ cdef extern from "numpy/arrayobject.h": cdef dtype descr cdef int flags + ctypedef extern class numpy.flatiter [object PyArrayIterObject]: + cdef int nd_m1 + cdef npy_intp index, size + cdef ndarray ao + cdef char *dataptr + + ctypedef extern class numpy.broadcast [object PyArrayMultiIterObject]: + cdef int numiter + cdef npy_intp size, index + cdef int nd + cdef npy_intp dimensions[NPY_MAXDIMS] + cdef flatiter iters[NPY_MAXDIMS] + object PyArray_ZEROS(int ndims, npy_intp* dims, NPY_TYPES type_num, int fortran) object PyArray_EMPTY(int ndims, npy_intp* dims, NPY_TYPES type_num, int fortran) dtype PyArray_DescrFromTypeNum(NPY_TYPES type_num) @@ -102,4 +116,6 @@ cdef extern from "numpy/arrayobject.h": npy_intp* dims, npy_intp* strides, void* data, int flags, object parent) + void PyArray_ITER_NEXT(flatiter it) + void import_array() |