Re: [Numpy-discussion] Fortran ordering

2010-04-17 Thread Paul Northug
Stéfan van der Walt sun.ac.za> writes: > > On 16 April 2010 21:35, Paul Northug gmail.com> wrote: > > how is it stored in memory, as [1, 2, 3, 4] or [1, 3, 2, 4]? > > The latter: > > In [22]: np.fromstring(str(x.data)) > Out[22]: array([ 1., 3., 2., 4.]) > > > But when I call external lib

Re: [Numpy-discussion] Bug in numpy.fix(): broken for scalar arguments

2010-04-17 Thread Charles R Harris
On Sat, Apr 17, 2010 at 2:01 PM, Eric Firing wrote: > np.fix() no longer works for scalar arguments: > > > In [1]:import numpy as np > > In [2]:np.version.version > Out[2]:'2.0.0.dev8334' > > In [3]:np.fix(3.14) > --- > TypeE

[Numpy-discussion] Bug in numpy.fix(): broken for scalar arguments

2010-04-17 Thread Eric Firing
np.fix() no longer works for scalar arguments: In [1]:import numpy as np In [2]:np.version.version Out[2]:'2.0.0.dev8334' In [3]:np.fix(3.14) --- TypeError Traceback (most recent call last)

Re: [Numpy-discussion] Fortran ordering

2010-04-17 Thread Stéfan van der Walt
On 16 April 2010 21:35, Paul Northug wrote: > how is it stored in memory, as [1, 2, 3, 4] or [1, 3, 2, 4]? The latter: In [22]: np.fromstring(str(x.data)) Out[22]: array([ 1., 3., 2., 4.]) > But when I call external libraries through ctypes with a.ctypes.data > as argument, the external func

Re: [Numpy-discussion] Fortran ordering

2010-04-17 Thread Dag Sverre Seljebotn
Paul Northug wrote: > I'd like to use numpy fortran ordering in order to use some external > libraries more easily, but it looks like I don't understand how it > works and it is causing transposes that are confusing me. > > When I define an array as: > > a = np.array([[1.,2.],[3.,4.]], order='F',

Re: [Numpy-discussion] My GSoC Proposal to Implement a Subset of NumPy for PyPy

2010-04-17 Thread Stéfan van der Walt
Hi Dan On 17 April 2010 06:50, Dan Roberts wrote: >     Hi everybody, my name is Dan Roberts, and my Google Summer of Code > proposal was categorized under NumPy rather than PyPy, so it will end up > being reviewed by mentors for the NumPy project.  I'd like to take this > chance to introduce mys

Re: [Numpy-discussion] My GSoC Proposal to Implement a Subset of NumPy for PyPy

2010-04-17 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: > Dan Roberts wrote: >> Hello NumPy Users, >> Hi everybody, my name is Dan Roberts, and my Google Summer of Code >> proposal was categorized under NumPy rather than PyPy, so it will end up >> being reviewed by mentors for the NumPy project. I'd like to take this

Re: [Numpy-discussion] My GSoC Proposal to Implement a Subset of NumPy for PyPy

2010-04-17 Thread Dag Sverre Seljebotn
Dan Roberts wrote: > Hello NumPy Users, > Hi everybody, my name is Dan Roberts, and my Google Summer of Code > proposal was categorized under NumPy rather than PyPy, so it will end up > being reviewed by mentors for the NumPy project. I'd like to take this > chance to introduce myself and m