Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Pauli Virtanen
13.07.2015, 20:08, Nathaniel Smith kirjoitti: [clip] > Keep in mind that any solution needs to support weird systems too, > including Windows. I'm not sure we can assume that all BLAS libraries are > ABI compatible either. Debian/Ubuntu make sure that this is true for the > ones they ship, but not

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Pauli Virtanen
13.07.2015, 19:44, Eric Martin kirjoitti: > It seems to me that a potentially better route than "add code to Numpy to > support BLAS library" for each library is to make Numpy easy to configure > to compile with an arbitrary BLAS library (like what I've been doing). Does this work: export ATLAS=N

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Ian Henriksen
On Mon, Jul 13, 2015 at 11:08 AM Nathaniel Smith wrote: > I think that if you can make this work then it would be great (who doesn't > like less code that does more?), but that as a practical matter > accomplishing this may be difficult. AFAIK there simply is no way to write > generic code to pro

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Nathaniel Smith
On Jul 13, 2015 11:48 AM, "Eric Martin" wrote: > > Nathaniel and Ian both mention adding code to Numpy to explicitly support Eigen. > > It seems to me that a potentially better route than "add code to Numpy to support BLAS library" for each library is to make Numpy easy to configure to compile wit

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Eric Martin
Nathaniel and Ian both mention adding code to Numpy to explicitly support Eigen. It seems to me that a potentially better route than "add code to Numpy to support BLAS library" for each library is to make Numpy easy to configure to compile with an arbitrary BLAS library (like what I've been doing)

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Ian Henriksen
On Mon, Jul 13, 2015 at 7:55 AM Nathaniel Smith wrote: > On Jul 13, 2015 1:44 AM, "Eric Martin" wrote: > > > > My procedure questions: > > Is the installation procedure I outlined above reasonable, or does it > contain steps that could/should be removed? Having to edit Numpy source > seems sketc

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Oscar Villellas
On Mon, Jul 13, 2015 at 8:40 AM, Eric Martin wrote: > [...] > > *My questions about this:* > CBLAS questions: > What does CBLAS do, and why/when is it necessary? For both ACML 6 and > Eigen, I could not link directly to the library but could with CBLAS. My > understanding is that the BLAS inter

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Nathaniel Smith
On Jul 13, 2015 1:44 AM, "Eric Martin" wrote: > > My procedure questions: > Is the installation procedure I outlined above reasonable, or does it contain steps that could/should be removed? Having to edit Numpy source seems sketchy to me. I largely came up with this procedure by looking up tutoria

Re: [Numpy-discussion] dimension independent copy of corner of array

2015-07-13 Thread Neal Becker
Robert Kern wrote: > newarr[tuple(slice(0, i) for i in oldarray.shape)] = oldarray > > On Mon, Jul 13, 2015 at 12:34 PM, Neal Becker wrote: > >> I want to copy an array to the corner of a new array. What is a >> dimension independent way to say: >> >> newarr[:i0,:i1,...] = oldarray >> >> where

Re: [Numpy-discussion] dimension independent copy of corner of array

2015-07-13 Thread Robert Kern
newarr[tuple(slice(0, i) for i in oldarray.shape)] = oldarray On Mon, Jul 13, 2015 at 12:34 PM, Neal Becker wrote: > I want to copy an array to the corner of a new array. What is a dimension > independent way to say: > > newarr[:i0,:i1,...] = oldarray > > where (i0,i1...) is oldarray.shape? > >

[Numpy-discussion] dimension independent copy of corner of array

2015-07-13 Thread Neal Becker
I want to copy an array to the corner of a new array. What is a dimension independent way to say: newarr[:i0,:i1,...] = oldarray where (i0,i1...) is oldarray.shape? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/ma