Re: [Numpy-discussion] printing array in tabular form

2013-05-07 Thread Henry Gomersall
On Wed, 2013-05-08 at 10:13 +0800, Sudheer Joseph wrote: > However I get below error. Please tell me if any thing I am missing. > > > file "read_reg_grd.py", line 22, in > np.savetxt("file.txt", IL.reshape(-1,5), fmt='%5d', delimiter=',') > AttributeError: 'list' object has no attribute 'res

Re: [Numpy-discussion] printing array in tabular form

2013-05-07 Thread Sudheer Joseph
Thank you Derek,                    However I get below error. Please tell me if any thing I am missing. file "read_reg_grd.py", line 22, in     np.savetxt("file.txt", IL.reshape(-1,5), fmt='%5d', delimiter=',') AttributeError: 'list' object has no attribute 'reshape' with best regards, Sudheer

[Numpy-discussion] CfP 2013 Workshop on Middleware for HPC and Big Data Systems (MHPC'13)

2013-05-07 Thread MHPC 2013
we apologize if you receive multiple copies of this message === CALL FOR PAPERS 2013 Workshop on Middleware for HPC and Big Data Systems MHPC '13 as part of Euro-Par 2013, Aachen, Germany =

Re: [Numpy-discussion] Numpy beginner tutorial

2013-05-07 Thread eat
Hi, Looks nice tutorial, indeed. On Tue, May 7, 2013 at 12:54 PM, Nicolas Rougier wrote: > > > Hello everybody, > > > I've written a numpy beginner tutorial that is available from: > > http://www.loria.fr/~rougier/teaching/numpy/numpy.html > > It has been designed around cellular automata to tr

Re: [Numpy-discussion] Numpy beginner tutorial

2013-05-07 Thread Nicolas Rougier
Shame on me ! How did I forget this one... Thanks, just added it. Nicolas > > Hi Nicolas, that looks good. You're linking to some other tutorials at the > bottom, maybe you can add http://scipy-lectures.github.io/ (has both an intro > and an advanced numpy tutorial). > > Ralf ___

Re: [Numpy-discussion] Numpy beginner tutorial

2013-05-07 Thread Ralf Gommers
On Tue, May 7, 2013 at 11:54 AM, Nicolas Rougier wrote: > > > Hello everybody, > > > I've written a numpy beginner tutorial that is available from: > > http://www.loria.fr/~rougier/teaching/numpy/numpy.html > > It has been designed around cellular automata to try to make it fun. > Hi Nicolas, tha

Re: [Numpy-discussion] searchsorted descending arrays

2013-05-07 Thread Benjamin Root
On Mon, May 6, 2013 at 7:16 PM, Nathaniel Smith wrote: > On Mon, May 6, 2013 at 6:54 PM, Bago wrote: > > I submitted a patch a little while ago, > > https://github.com/numpy/numpy/pull/3107, which gave the searchsorted > > function the ability to search arrays sorted in descending order. At the

Re: [Numpy-discussion] printing array in tabular form

2013-05-07 Thread Derek Homeier
Dear Sudheer, On 07.05.2013, at 11:14AM, Sudheer Joseph wrote: > I need to print few arrays in a tabular form for example below > array IL has 25 elements, is there an easy way to print this as 5x5 comma > separated table? in python > > IL=[] > for i in np.arange(1,bno+1): >

Re: [Numpy-discussion] Really cruel draft of vbench setup for NumPy (.add.reduce benchmarks since 2011)

2013-05-07 Thread Daπid
On 7 May 2013 13:47, Sebastian Berg wrote: > Indexing/assignment was the first thing I thought of too (also because > fancy indexing/assignment really could use some speedups...). Other then > that maybe some timings for small arrays/scalar math, but that might be > nice for that GSoC project. Wh

Re: [Numpy-discussion] Really cruel draft of vbench setup for NumPy (.add.reduce benchmarks since 2011)

2013-05-07 Thread Sebastian Berg
On Mon, 2013-05-06 at 12:11 -0400, Yaroslav Halchenko wrote: > On Mon, 06 May 2013, Sebastian Berg wrote: > > > > if you care to tune it up/extend and then I could fire it up again on > > > that box (which doesn't do anything else ATM AFAIK). Since majority of > > > time is spent actually buildi

[Numpy-discussion] Numpy beginner tutorial

2013-05-07 Thread Nicolas Rougier
Hello everybody, I've written a numpy beginner tutorial that is available from: http://www.loria.fr/~rougier/teaching/numpy/numpy.html It has been designed around cellular automata to try to make it fun. While writing it, I tried to compile a set of exercises and make them progressively ha

[Numpy-discussion] printing array in tabular form

2013-05-07 Thread Sudheer Joseph
Dear experts,     I need to print few arrays in a tabular form for example below array IL has 25 elements, is there an easy way to print this as 5x5 comma separated table? in python IL=[] for i in np.arange(1,bno+1):    IL.append(i) print(IL)