Re: [Numpy-discussion] numpy.ma.mod missing

2008-11-22 Thread Pierre GM
Added on SVN (r6094 for 13x, r6095 for 12x). Thx for reporting! On Nov 19, 2008, at 6:57 PM, Charles سمير Doutriaux wrote: > Hello, > > Can I request that "mod" be added to numpy.ma ? > > Thx, > > C> > > ___ > Numpy-discussion mailing list > Numpy-disc

Re: [Numpy-discussion] Need some explanations on assigning/incrementing values in Numpy

2008-11-22 Thread Robert Kern
On Sat, Nov 22, 2008 at 13:19, Loïc BERTHE <[EMAIL PROTECTED]> wrote: > I've encoutered an error during an ipython's session that I fail to > understand : > > In [12]: n = 4 > In [13]: K = mat(diag(arange(2*n))) > In [14]: print K > [[0 0 0 0 0 0 0 0] > [0 1 0 0 0 0 0 0] > [0 0 2 0 0 0 0 0] > [

[Numpy-discussion] Need some explanations on assigning/incrementing values in Numpy

2008-11-22 Thread Loïc BERTHE
I've encoutered an error during an ipython's session that I fail to understand : In [12]: n = 4 In [13]: K = mat(diag(arange(2*n))) In [14]: print K [[0 0 0 0 0 0 0 0] [0 1 0 0 0 0 0 0] [0 0 2 0 0 0 0 0] [0 0 0 3 0 0 0 0] [0 0 0 0 4 0 0 0] [0 0 0 0 0 5 0 0] [0 0 0 0 0 0 6 0] [0 0 0 0 0 0 0