Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-26 Thread David Warde-Farley
On 26-May-09, at 1:15 AM, Robert Kern wrote: I *did* do some due diligence before I designed a new binary format. Uh oh, I feel this might've taken a sharp turn towards another of course Robert is right, Robert is always right threads. :) David

Re: [Numpy-discussion] parsing text strings/files in fromfile, fromstring

2009-05-26 Thread Christopher Barker
Charles R Harris wrote: I am trying to put together some rule for parsing text strings/files in fromfile, fromstring so that the two are consistent. Thanks for giving these some attention -- they've needed it for a while! 1) When the string/file is empty fromfile returns and empty array,

[Numpy-discussion] CUDA

2009-05-26 Thread Brennan Williams
Not a question really but just for discussion/pie-in-the-sky etc This is a news item on vizworld about getting Matlab code to run on a CUDA enabled GPU. http://www.vizworld.com/2009/05/cuda-enable-matlab-with-gpumat/ If the use of GPU's for numerical tasks takes off (has it already?) then

Re: [Numpy-discussion] CUDA

2009-05-26 Thread David Cournapeau
Brennan Williams wrote: Not a question really but just for discussion/pie-in-the-sky etc This is a news item on vizworld about getting Matlab code to run on a CUDA enabled GPU. http://www.vizworld.com/2009/05/cuda-enable-matlab-with-gpumat/ There is this which looks similar for

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-26 Thread Francesc Alted
A Tuesday 26 May 2009 03:11:56 David Cournapeau escrigué: Charles R Harris wrote: On Mon, May 25, 2009 at 4:59 AM, Andrew Friedley afrie...@indiana.edu mailto:afrie...@indiana.edu wrote: For some reason the list seems to occasionally drop my messages... Francesc Alted wrote:

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-26 Thread David Cournapeau
Francesc Alted wrote: Well, it is Andrew who should demonstrate that his measurement is correct, but in principle, 4 cycles/item *should* be feasible when using 8 cores in parallel. But the 100x speed increase is for one core only unless I misread the table. And I should have mentioned

Re: [Numpy-discussion] CUDA

2009-05-26 Thread Olivier Grisel
Also note: nvidia is about to release the first implementation of an OpenCL runtime based on cuda. OpenCL is an open standard such as OpenGL but for numerical computing on stream platforms (GPUs, Cell BE, Larrabee, ...). -- Olivier On May 26, 2009 8:54 AM, David Cournapeau

[Numpy-discussion] Segmentation fault on large arrays

2009-05-26 Thread Nicolas Rougier
Hello, I've come across what is probably a bug in size check for large arrays: import numpy z1 = numpy.zeros((255*256,256*256)) Traceback (most recent call last): File stdin, line 1, in module ValueError: dimensions too large. z2 = numpy.zeros((256*256,256*256)) z2.shape (65536, 65536)

Re: [Numpy-discussion] CUDA

2009-05-26 Thread Neal Becker
Olivier Grisel wrote: Also note: nvidia is about to release the first implementation of an OpenCL runtime based on cuda. OpenCL is an open standard such as OpenGL but for numerical computing on stream platforms (GPUs, Cell BE, Larrabee, ...). You might be interested in pycuda.

Re: [Numpy-discussion] CUDA

2009-05-26 Thread Gael Varoquaux
On Tue, May 26, 2009 at 07:43:02AM -0400, Neal Becker wrote: Olivier Grisel wrote: Also note: nvidia is about to release the first implementation of an OpenCL runtime based on cuda. OpenCL is an open standard such as OpenGL but for numerical computing on stream platforms (GPUs, Cell BE,

Re: [Numpy-discussion] CUDA

2009-05-26 Thread Matthieu Brucher
2009/5/26 Gael Varoquaux gael.varoqu...@normalesup.org: On Tue, May 26, 2009 at 07:43:02AM -0400, Neal Becker wrote: Olivier Grisel wrote: Also note: nvidia is about to release the first implementation of an OpenCL runtime based on cuda. OpenCL is an open standard such as OpenGL but for

Re: [Numpy-discussion] CUDA

2009-05-26 Thread Sebastien Binet
On Tuesday 26 May 2009 14:08:32 Matthieu Brucher wrote: 2009/5/26 Gael Varoquaux gael.varoqu...@normalesup.org: On Tue, May 26, 2009 at 07:43:02AM -0400, Neal Becker wrote: Olivier Grisel wrote: Also note: nvidia is about to release the first implementation of an OpenCL runtime based on

Re: [Numpy-discussion] CUDA

2009-05-26 Thread Matthieu Brucher
The issue with OpenCL is that there will be some extensions for each supported architecture, which means that the generic OpenCL will never be very fast or more exactly near the optimum. what's the difference w/ OpenGL ? i.e. isn't the job of the underlying library to provide the best

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-26 Thread Andrew Friedley
David Cournapeau wrote: Francesc Alted wrote: Well, it is Andrew who should demonstrate that his measurement is correct, but in principle, 4 cycles/item *should* be feasible when using 8 cores in parallel. But the 100x speed increase is for one core only unless I misread the table. And

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-26 Thread Alan G Isaac
Would you like to put xirr in econpy until it finds a home in SciPy? (Might as well make it available.) Cheers, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Segmentation fault on large arrays

2009-05-26 Thread Charles R Harris
On Tue, May 26, 2009 at 1:55 AM, Nicolas Rougier nicolas.roug...@loria.frwrote: Hello, I've come across what is probably a bug in size check for large arrays: import numpy z1 = numpy.zeros((255*256,256*256)) Traceback (most recent call last): File stdin, line 1, in module ValueError:

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-26 Thread josef . pktd
I rewrote irr to use the iterative solver instead of polynomial roots so that it can also handle large arrays. For 3000 values, I had to kill the current np.irr since I didn't want to wait longer than 10 minutes When writing the test, I found that npv is missing a when keyword, for the case when

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-26 Thread Robert Ferrell
On May 25, 2009, at 10:59 PM, Joe Harrington wrote: Let's keep this thread focussed on the original issue: just add a floating array of times to irr or a new xirr continuous interest no more Anyone can use the timeseries package to produce a floating array of times from normal dates, if

[Numpy-discussion] casting bug

2009-05-26 Thread Charles سمير Doutriaux
Hi there, One of our users just found a bug in numpy that has to do with casting. Consider the attached example. The difference at the end should be 0 (zero) everywhere. But it's not by default. Casting the data to 'float64' at reading and assiging to the arrays works Defining the arrays

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-26 Thread Robert Kern
On Tue, May 26, 2009 at 00:50, Christopher Barker chris.bar...@noaa.gov wrote: Robert Kern wrote: Yes. That's why I wrote the NPY format instead. I *did* do some due diligence before I designed a new binary format. I assumed so, and I also assume you took a look at netcdf3, but since it's

Re: [Numpy-discussion] casting bug

2009-05-26 Thread Robert Kern
2009/5/26 Charles سمير Doutriaux doutria...@llnl.gov: Hi there, One of our users just found a bug in numpy that has to do with casting. Consider the attached example. The difference at the end should be  0 (zero) everywhere. But it's not by default. Casting the data to 'float64' at

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-26 Thread Christopher Barker
Robert Kern wrote: On Tue, May 26, 2009 at 00:50, Christopher Barker chris.bar...@noaa.gov wrote: I assumed so, and I also assume you took a look at netcdf3, but since it's been brought up here, I take it it didn't fit the bill? Lack of unsigned and 64-bit integers for the most part. But

[Numpy-discussion] Can you teach me how to used array api in C/C++?

2009-05-26 Thread chaow porkaew
Can you teach me how to used array api in C/C++? 1.How to get a data in co-ordinate i,j , example a = array([[1,2,3],[4,5,6]]) how do i get the value of 5 in c/c++ or 2.How i sum all of data in arrays in c/c++ ___ Numpy-discussion mailing list