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

2013-07-09 Thread Yaroslav Halchenko
Julian Taylor contributed some benchmarks he was "concerned" about, so now the collection is even better. I will keep updating tests on the same url: http://www.onerussian.com/tmp/numpy-vbench/ [it is now running and later I will upload with more commits for higher temporal fidelity] of particul

Re: [Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Chao YUE
Thanks Pierre, good to know there are so many tricks available. Chao On Tue, Jul 9, 2013 at 4:55 PM, Pierre Gerard-Marchant wrote: > > On Jul 9, 2013, at 16:38 , Chao YUE wrote: > > > Sorry I didn't the docs very carefully. there is no doc for np.ma.argmax > for indeed there is for np.ma.argmi

Re: [Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Pierre Gerard-Marchant
On Jul 9, 2013, at 16:38 , Chao YUE wrote: > Sorry I didn't the docs very carefully. there is no doc for np.ma.argmax for > indeed there is for np.ma.argmin Yeah, the doc of the function asks you to go check the doc of the method… Not the best. > so it's an expected behavior rather than a b

Re: [Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Chao YUE
Sorry I didn't the docs very carefully. there is no doc for np.ma.argmax for indeed there is for np.ma.argmin so it's an expected behavior rather than a bug. Let some heavy users to say their ideas. Practicaly, the returned value of 0 will be always confused with the values which are not masked b

Re: [Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Pierre Gerard-Marchant
On Jul 9, 2013, at 16:08 , Sebastian Berg wrote: > On Tue, 2013-07-09 at 15:14 +0200, Stéfan van der Walt wrote: >> On Tue, Jul 9, 2013 at 2:55 PM, Chao YUE wrote: >>> I am using 1.7.1 version of numpy and np.ma.argmax is not repecting the >>> mask? >>> >>> In [96]: d3 >>> Out[96]: >>> masked_

Re: [Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Sebastian Berg
On Tue, 2013-07-09 at 15:14 +0200, Stéfan van der Walt wrote: > On Tue, Jul 9, 2013 at 2:55 PM, Chao YUE wrote: > > I am using 1.7.1 version of numpy and np.ma.argmax is not repecting the > > mask? > > > > In [96]: d3 > > Out[96]: > > masked_array(data = > > [[-- -- -- -- 4] > > [5 -- 7 8 9]], >

Re: [Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Stéfan van der Walt
On Tue, Jul 9, 2013 at 2:55 PM, Chao YUE wrote: > I am using 1.7.1 version of numpy and np.ma.argmax is not repecting the > mask? > > In [96]: d3 > Out[96]: > masked_array(data = > [[-- -- -- -- 4] > [5 -- 7 8 9]], > mask = > [[ True True True True False] > [False True False F

[Numpy-discussion] np.ma.argmax not respecting the mask?

2013-07-09 Thread Chao YUE
Dear all, I am using 1.7.1 version of numpy and np.ma.argmax is not repecting the mask? I expect for all data that are masked, it should also return a mask, but this is not the case. In [96]: d3 Out[96]: masked_array(data = [[-- -- -- -- 4] [5 -- 7 8 9]], mask = [[ True True Tru