[Numpy-discussion] Fwd: Installation Problem

2017-02-01 Thread Naresh P
*Warm Regards,* *Naresh* *Developer * *Consumer Goods Myanmar Limited ( CGM )No.15, Junction Square Complex, 37-G, Pyay Road,**13041 Kamayut Township**, Yangon, Myanmar.* *Tel: +959979867914* http://www.cg-m.com -- Forwarded message -- From: Date: Wed, Feb 1, 2017 at 2:59 PM

Re: [Numpy-discussion] fast method to to count a particular value in a large matrix

2012-02-06 Thread Naresh
David: from 9-10 minutes to about 2-3 seconds, it's amazing! Thanks, Naresh ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] matrix indexing

2012-02-06 Thread Naresh Pai
. So I am looking for a solution where all elem can get processed in a single call and the indices of ABC be stored in another variable (separately). I would appreciate if you suggest any faster method for getting DEF_distr. Thanks, Naresh ___ NumPy

Re: [Numpy-discussion] fast method to to count a particular value in a large matrix

2012-02-04 Thread Naresh
Warren Weckesser enthought.com> writes: > > > On Sat, Feb 4, 2012 at 2:35 PM, Benjamin Root ou.edu> wrote: > > > On Saturday, February 4, 2012, Naresh Pai uark.edu> wrote:> I am somewhat new to Python (been coding with Matlab mostly). I am trying to  > &g

[Numpy-discussion] fast method to to count a particular value in a large matrix

2012-02-04 Thread Naresh Pai
(unique_elem)): elem_count[i]= np.sum(reduce(np.logical_or,(abc== x for x in [unique_elem[i]]))) This loop is bottleneck because I have about 850 unique elements and it takes about 9-10 minutes. Can you suggest a faster way to do this? Thank you, Naresh