[Numpy-discussion] AUTO: Jon K Peck is out of the office (returning 05/18/2011)

2011-05-12 Thread Jon K Peck
I am out of the office until 05/18/2011. I am out of the office traveling Wed - Thursday, May 11-12 and Saturday-Tuesday, May 14-17. I will have limited access to email during this time, so I will be delayed in responding. Note: This is an automated response to your message "NumPy-Discussion

Re: [Numpy-discussion] ufunc 's order of execution [relevant when output overlaps with input]

2011-05-12 Thread srean
> It is possible that we can make an exception for inputs and outputs > that overlap each other and pick a standard traversal. In those cases, > the order of traversal can affect the semantics, Exactly. If there is no overlap then it does not matter and can potentially be done in parallel. On the

Re: [Numpy-discussion] ufunc 's order of execution [relevant when output overlaps with input]

2011-05-12 Thread Robert Kern
On Thu, May 12, 2011 at 16:21, srean wrote: > Hi, > >   is there a guarantee that ufuncs will execute left to right and in > sequential order ? By which you mean that it will traverse the elements in a 1D array left-to-right? No, this is not guaranteed. numpy reserves the right to reorder the com

[Numpy-discussion] ufunc 's order of execution [relevant when output overlaps with input]

2011-05-12 Thread srean
Hi, is there a guarantee that ufuncs will execute left to right and in sequential order ? For instance is the following code standards compliant ? >>> import numpy as n >>> a=n.arange(0,5) array([0, 1, 2, 3, 4]) >>> n.add(a[0:-1], a[1:], a[0:-1]) array([1, 3, 5, 7]) The idea was to reuse and h

[Numpy-discussion] RHE 4 and test failure with complex numbers (tickets: 1323, 1324 and 1325)

2011-05-12 Thread Bruce Southey
Hi, I think tickets 1323, 1324 and 1325 have a common source of error and, thus, are duplicates. http://projects.scipy.org/numpy/ticket/1323 http://projects.scipy.org/numpy/ticket/1324 http://projects.scipy.org/numpy/ticket/1325 These tickets could be closed just because Red Hat Enterprise Linux

Re: [Numpy-discussion] f2py complications

2011-05-12 Thread Pearu Peterson
On Thu, May 12, 2011 at 4:14 PM, Jose Gomez-Dans wrote: > Hi, > > We have some fortran code that we'd like to wrap using f2py. The code > consists of a library that we compile into an .so file, and a file that > wraps that library, which is then wrapped by f2py to provide a clean > interface to th

[Numpy-discussion] f2py complications

2011-05-12 Thread Jose Gomez-Dans
Hi, We have some fortran code that we'd like to wrap using f2py. The code consists of a library that we compile into an .so file, and a file that wraps that library, which is then wrapped by f2py to provide a clean interface to the library. The process thus includes two steps: 1.- Use a makefile t

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Claudia Chan Yone
Merci beaucoup beaucoup!! 2011/5/12 Éric Depagne > Le jeudi 12 mai 2011 12:21:46, Claudia Chan Yone a écrit : > > Hi, > > > > I have a problem with the Numpy module, but I think it is a very basic > > issue for many of you... > > I have a file with numerical data (2 columns, and 5 lignes) as : >

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Éric Depagne
Le jeudi 12 mai 2011 12:21:46, Claudia Chan Yone a écrit : > Hi, > > I have a problem with the Numpy module, but I think it is a very basic > issue for many of you... > I have a file with numerical data (2 columns, and 5 lignes) as : > 1 2 > 3 4 > ... ... > > And I woulid like to convert it in a

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Youngung Jeong
Sorry you don't have to transpose the matrix... Youngung Jeong On Thu, May 12, 2011 at 7:30 PM, Youngung Jeong wrote: > Hello, > > Use np.loadtxt > > >>> a = np.loadtxt(filename) ##in case no rows to skip. > >>> a = a.transpose() ##in your case, I guess you should > tra

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Youngung Jeong
Hello, Use np.loadtxt >>> a = np.loadtxt(filename) ##in case no rows to skip. >>> a = a.transpose() ##in your case, I guess you should transpose it.. Youngung Jeong On Thu, May 12, 2011 at 7:21 PM, Claudia Chan Yone < chanyone.clau...@gmail.com> wrote: > Hi, > > I ha

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Miguel de Val-Borro
On Thu, May 12, 2011 at 12:21:46PM +0200, Claudia Chan Yone wrote: > Hi, > > I have a problem with the Numpy module, but I think it is a very basic issue > for many of you... > I have a file with numerical data (2 columns, and 5 lignes) as : > 1 2 > 3 4 > ... ... > > And I woulid like to convert

[Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Claudia Chan Yone
Hi, I have a problem with the Numpy module, but I think it is a very basic issue for many of you... I have a file with numerical data (2 columns, and 5 lignes) as : 1 2 3 4 ... ... And I woulid like to convert it in a matrix as : [[1,2] [3,4] ...] My python script is : fic=open('file.txt','r')