[Numpy-discussion] diagonal

2007-05-05 Thread Charles R Harris
Hi All, Just noting an oddity when the diagonal method is called on arrays with ndim 2 In [1]: a = arange(8).reshape(2,2,2) In [2]: a.diagonal() Out[2]: array([[0, 6], [1, 7]]) The diagonal is taken over the first two indices while the rightmost indices vary the slowest. I would expect

Re: [Numpy-discussion] matlab vs. python question

2007-05-05 Thread Steve Lianoglou
On May 5, 2007, at 6:54 AM, Alexander Schmolck wrote: > "Bill Baxter" <[EMAIL PROTECTED]> writes: > >> also pulls the numpy namespace into the global one. For debugger >> integration, is there any way to set up ipython so that on errors it >> will pop up a GUI debugger that shows the line of sour

Re: [Numpy-discussion] matlab vs. python question

2007-05-05 Thread Alexander Schmolck
"Bill Baxter" <[EMAIL PROTECTED]> writes: > also pulls the numpy namespace into the global one. For debugger > integration, is there any way to set up ipython so that on errors it > will pop up a GUI debugger that shows the line of source code where > the error occured and let you set break point