Re: [Numpy-discussion] GSoC?

2016-02-17 Thread Andy Ray Terrel
On Wed, Feb 17, 2016 at 12:57 PM, Chris Barker wrote: > Apparetnly, NumFocus is applyign to be a GSoC Umbrella org as well: > > https://github.com/numfocus/gsoc > > Not sure why one might choose NumFocus vs PSF... > > No reason to choose, you can get students from both orgs. > -Chris > > > On W

Re: [Numpy-discussion] How to find indices of values in an array (indirect in1d) ?

2015-12-30 Thread Andy Ray Terrel
Using pandas one can do: >>> A = np.array([2,0,1,4]) >>> B = np.array([1,2,0]) >>> s = pd.Series(range(len(B)), index=B) >>> s[A].values array([ 1., 2., 0., nan]) On Wed, Dec 30, 2015 at 8:45 AM, Nicolas P. Rougier < nicolas.roug...@inria.fr> wrote: > > I’m scratching my head around a sm

Re: [Numpy-discussion] numpy.power -> numpy.random.choice Probabilities don't sum to 1

2015-12-19 Thread Andy Ray Terrel
A simple fix would certainly by pass the check in random.choice, but I don't know how to get that. So let's focus on the summation. I believe you are hitting an instability in summing small numbers as a power to 10th order would produce. Here is an example: mymatrix = np.random.rand(1024,1024).as

Re: [Numpy-discussion] performance solving system of equations in numpy and MATLAB

2015-12-17 Thread Andy Ray Terrel
On Thu, Dec 17, 2015 at 5:52 AM, Sturla Molden wrote: > On 17/12/15 12:06, Francesc Alted wrote: > > Pretty good. I did not know that OpenBLAS was so close in performance >> to MKL. >> > > MKL, OpenBLAS and Accelerate are very close in performance, except for > level-1 BLAS where Accelerate and

Re: [Numpy-discussion] Should dtypes have an ndim attribute?

2015-12-10 Thread Andy Ray Terrel
That's essentially what datashape did over in the blaze ecosystem. It gets a bit fancier to support ragged arrays and optional types. http://datashape.readthedocs.org/en/latest/ On Dec 10, 2015 5:14 AM, "Gerrit Holl" wrote: > Hi, > > I have made a modest proposal in issue #6752 >

Re: [Numpy-discussion] problems with mailing list ?

2014-07-18 Thread Andy Ray Terrel
The Enthought support tells me this is fixed now. Please let me know if otherwise. On Fri, Jul 18, 2014 at 8:09 AM, Derek Homeier wrote: > On 18 Jul 2014, at 01:07 pm, josef.p...@gmail.com wrote: > >> Are the problems with sending out the messages with the mailing lists? >> >> I'm getting some re

Re: [Numpy-discussion] Mailing list slowdown (was Re: __numpy_ufunc__)

2014-07-18 Thread Andy Ray Terrel
We think this is fixed now. Let me know if it is otherwise. On Thu, Jul 17, 2014 at 7:04 AM, Nathaniel Smith wrote: > On 17 Jul 2014 11:51, "Sebastian Berg" wrote: >> >> On Mi, 2014-07-16 at 09:07 +0100, Nathaniel Smith wrote: >> > Weirdly, I never received Chuck's original email in this thread.

Re: [Numpy-discussion] problems with mailing list ?

2014-07-18 Thread Andy Ray Terrel
Yes I've filed a ticket with Enthought. On Fri, Jul 18, 2014 at 7:07 AM, wrote: > Are the problems with sending out the messages with the mailing lists? > > I'm getting some replies without original messages, and in some threads I > don't get replies, missing part of the discussions. > > > Josef

Re: [Numpy-discussion] Python parallel programming on Mac OS X Maverick

2013-10-28 Thread Andy Ray Terrel
Hi Siegfried, Parallel programs, just like serial programs, will consume as much (or as little) memory as they are required to do so. The Python interpreter and Numpy libraries all fit under 20 MB. So even a haswell with its 4 cores is going to be insignificant overhead for running Python in para