[pypy-commit] pypy pypy-pyarray: - cpyext/ndarrayobject.py: Rename PyArray_* routines to _PyArray_* to

2013-08-02 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r65897:bf28f2841084 Date: 2013-07-28 21:49 +0200 http://bitbucket.org/pypy/pypy/changeset/bf28f2841084/ Log:- cpyext/ndarrayobject.py: Rename PyArray_* routines to _PyArray_* to avoid name clashes with other implementations of n

[pypy-commit] pypy pypy-pyarray: - cpyext/ndarrayobject.py: Add support for PyArray_STRIDE() and

2013-08-02 Thread shmuller
ex *); Py_LOCAL_INLINE(Py_complex) PyComplex_AsCComplex(PyObject *obj) { @@ -24,7 +25,12 @@ return result; } -#define PyComplex_FromCComplex(c) _PyComplex_FromCComplex(&c) +// shmuller 2013/07/30: Make a function, since macro will fail in C++ due to +// const corr

[pypy-commit] pypy pypy-pyarray: - Add cpyext implementation of Numpy PyArray_* C-API

2013-08-02 Thread shmuller
-git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py --- a/pypy/module/micronumpy/interp_dtype.py +++ b/pypy/module/micronumpy/interp_dtype.py @@ -804,10 +804,12 @@ self.dtypes_by_name[alias] = dtype self.dtypes_by_name[dtype.char] =

[pypy-commit] pypy pypy-pyarray: - cpyext/include: Add a few definitions needed by PyCXX to headers (for

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66337:aabf1cc286a7 Date: 2013-07-31 00:42 +0200 http://bitbucket.org/pypy/pypy/changeset/aabf1cc286a7/ Log:- cpyext/include: Add a few definitions needed by PyCXX to headers (for matplotlib build). - NEW: cpyext/include

[pypy-commit] pypy pypy-pyarray: Declare PyArray_Type as extern.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66345:8a17098648b8 Date: 2013-08-08 18:16 +0200 http://bitbucket.org/pypy/pypy/changeset/8a17098648b8/ Log:Declare PyArray_Type as extern. diff --git a/pypy/module/cpyext/include/numpy/arrayobject.h b/pypy/module/cpyext/include/numpy

[pypy-commit] pypy pypy-pyarray: Implement PyNumber_Float() as space.float(w_obj).

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66346:56fa5d73e5ec Date: 2013-08-10 00:33 +0200 http://bitbucket.org/pypy/pypy/changeset/56fa5d73e5ec/ Log:Implement PyNumber_Float() as space.float(w_obj). diff --git a/pypy/module/cpyext/floatobject.py b/pypy/module/cpyext/floatobj

[pypy-commit] pypy pypy-pyarray: - cpyext/number.py, cpyext/test/test_number.py: Implement

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66336:eba88c40cdfa Date: 2013-07-30 20:24 +0200 http://bitbucket.org/pypy/pypy/changeset/eba88c40cdfa/ Log:- cpyext/number.py, cpyext/test/test_number.py: Implement PyNumber_CoerceEx() and PyNumber_Coerce(). diff --git a/pypy/

[pypy-commit] pypy pypy-pyarray: - cpyext/ndarrayobject.py: Rename PyArray_* routines to _PyArray_* to

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66333:ada4abc58e15 Date: 2013-07-28 21:49 +0200 http://bitbucket.org/pypy/pypy/changeset/ada4abc58e15/ Log:- cpyext/ndarrayobject.py: Rename PyArray_* routines to _PyArray_* to avoid name clashes with other implementations of n

[pypy-commit] pypy pypy-pyarray: Add PyArray_New() and many macros for f2py.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66343:bb2aafab5a92 Date: 2013-08-08 00:41 +0200 http://bitbucket.org/pypy/pypy/changeset/bb2aafab5a92/ Log:Add PyArray_New() and many macros for f2py. The modified version of f2py from the numpy pypy-hack branch genera

[pypy-commit] pypy pypy-pyarray: - Add cpyext implementation of Numpy PyArray_* C-API

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66332:01fc9f0596f2 Date: 2013-07-28 15:12 +0200 http://bitbucket.org/pypy/pypy/changeset/01fc9f0596f2/ Log:- Add cpyext implementation of Numpy PyArray_* C-API * pypy/module/cpyext/include/numpy/arrayobject.h * py

[pypy-commit] pypy pypy-pyarray: ndarray.nonzero(): Deal with scalars, add test.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66349:01ebe4a52002 Date: 2013-08-11 21:09 +0200 http://bitbucket.org/pypy/pypy/changeset/01ebe4a52002/ Log:ndarray.nonzero(): Deal with scalars, add test. - lib_pypy/numpypy/core/fromnumeric.py: Put original numpy impl

[pypy-commit] pypy pypy-pyarray: - Add missing symbols for importing matplotlib.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66340:ca566c12805d Date: 2013-08-01 08:54 +0200 http://bitbucket.org/pypy/pypy/changeset/ca566c12805d/ Log:- Add missing symbols for importing matplotlib. diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py --- a/pypy/m

[pypy-commit] pypy pypy-pyarray: Implement PyArray_FLAGS()

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66344:232f215b317d Date: 2013-08-08 16:16 +0200 http://bitbucket.org/pypy/pypy/changeset/232f215b317d/ Log:Implement PyArray_FLAGS() - ndarrayobject.py: Implement PyArray_FLAGS() instead of PyArray_ISCONTIGUOUS(). This

[pypy-commit] pypy pypy-pyarray: - cpyext/include/numpy/arrayobject.h: Many more definitions. Succeeded

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66339:4a0adafeea01 Date: 2013-07-31 17:55 +0200 http://bitbucket.org/pypy/pypy/changeset/4a0adafeea01/ Log:- cpyext/include/numpy/arrayobject.h: Many more definitions. Succeeded to compile a patched version of matplotlib with t

[pypy-commit] pypy pypy-pyarray: Implement ndarray.nonzero()

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66348:f0b2849dfe98 Date: 2013-08-11 18:59 +0200 http://bitbucket.org/pypy/pypy/changeset/f0b2849dfe98/ Log:Implement ndarray.nonzero() diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py

[pypy-commit] pypy pypy-pyarray: - lib_pypy/numpypy/__init__.py: __version__ and get_include() now

2013-08-26 Thread shmuller
t.h --- a/pypy/module/cpyext/include/complexobject.h +++ b/pypy/module/cpyext/include/complexobject.h @@ -28,7 +28,7 @@ // shmuller 2013/07/30: Make a function, since macro will fail in C++ due to // const correctness if called with "const Py_complex" //#define PyComplex

[pypy-commit] pypy pypy-pyarray: - cpyext/include/complexobject.h: Add Py_LOCAL_INLINE() to translate.

2013-08-26 Thread shmuller
rffi.CCHARP -> CONST_STRING for const correctness. diff --git a/pypy/module/cpyext/include/complexobject.h b/pypy/module/cpyext/include/complexobject.h --- a/pypy/module/cpyext/include/complexobject.h +++ b/pypy/module/cpyext/include/complexobject.h @@ -28,7 +28,7 @@ // shmuller 2013/07

[pypy-commit] pypy pypy-pyarray: array() constructor now uses for __array__() method.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66347:82c65a5a6f82 Date: 2013-08-10 23:20 +0200 http://bitbucket.org/pypy/pypy/changeset/82c65a5a6f82/ Log:array() constructor now uses for __array__() method. diff --git a/pypy/module/micronumpy/base.py b/pypy/module/micronumpy/base.

[pypy-commit] pypy pypy-pyarray: - cpyext/include/numpy/arrayobject.h: Many more definitions.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66338:53d9c2233349 Date: 2013-07-31 02:59 +0200 http://bitbucket.org/pypy/pypy/changeset/53d9c2233349/ Log:- cpyext/include/numpy/arrayobject.h: Many more definitions. diff --git a/pypy/module/cpyext/include/numpy/arrayobject.h b/pyp

[pypy-commit] pypy pypy-pyarray: Implement fijal's approach for nonzero()

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66351:81c7341f996b Date: 2013-08-13 01:06 +0200 http://bitbucket.org/pypy/pypy/changeset/81c7341f996b/ Log:Implement fijal's approach for nonzero() - Iterators get get_index() method. - create_iter() get additional key

[pypy-commit] pypy pypy-pyarray: Put split nonzero() between scalar.py, concrete.py and loops.py.

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66350:b70301c90922 Date: 2013-08-12 23:49 +0200 http://bitbucket.org/pypy/pypy/changeset/b70301c90922/ Log:Put split nonzero() between scalar.py, concrete.py and loops.py. - Separate implementations for 1D and ND case. Try to

[pypy-commit] pypy pypy-pyarray: Add some missing numpypy features

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66342:09db6e0e5c1d Date: 2013-08-06 00:12 +0200 http://bitbucket.org/pypy/pypy/changeset/09db6e0e5c1d/ Log:Add some missing numpypy features - ndarrayobject.py: PyArray_Check(), PyArray_CheckExact() - interp_numarray.p

[pypy-commit] pypy pypy-pyarray: - cpyext/ndarrayobject.py: Add support for PyArray_STRIDE() and

2013-08-26 Thread shmuller
Author: Stefan H. Muller Branch: pypy-pyarray Changeset: r66334:3f9be1d43a61 Date: 2013-07-30 11:59 +0200 http://bitbucket.org/pypy/pypy/changeset/3f9be1d43a61/ Log:- cpyext/ndarrayobject.py: Add support for PyArray_STRIDE() and PyArray_FromObject(). - cpyext/include/numpy: Ad