Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Matthew Brett
Hi, On Sat, Feb 22, 2014 at 4:09 PM, Pauli Virtanen wrote: > 23.02.2014 00:03, Nathaniel Smith kirjoitti: >> Currently numpy's 'dot' acts a bit weird for ndim>2 or ndim<1. In >> practice this doesn't usually matter much, because these are very >> rarely used. But, I would like to nail down the be

Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Pauli Virtanen
23.02.2014 00:03, Nathaniel Smith kirjoitti: > Currently numpy's 'dot' acts a bit weird for ndim>2 or ndim<1. In > practice this doesn't usually matter much, because these are very > rarely used. But, I would like to nail down the behaviour so we can > say something precise in the matrix multiplica

Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Alan G Isaac
It would help me follow this discussion if it were broken up into pieces: - what is being asserted as first principles for `dot` (e.g., what mathematical understanding)? - to what extent do other important implementations (e.g., Mathematica and Julia) deviate from the proposed mathematica

Re: [Numpy-discussion] OpenBLAS on Mac

2014-02-22 Thread Sturla Molden
On 22/02/14 23:39, Sturla Molden wrote: Ok, next runner up is Accelerate. Let's see how it compares to OpenBLAS and MKL on Mavericks. It seems Accelerate has roughly the same performance as MKL now. Did the upgrade to Mavericks do this? These are the compile lines, in case you wonder: $ C

Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread josef . pktd
On Sat, Feb 22, 2014 at 5:17 PM, Matthew Brett wrote: > Hi, > > On Sat, Feb 22, 2014 at 2:03 PM, Nathaniel Smith wrote: >> Hi all, >> >> Currently numpy's 'dot' acts a bit weird for ndim>2 or ndim<1. In >> practice this doesn't usually matter much, because these are very >> rarely used. But, I wo

Re: [Numpy-discussion] OpenBLAS on Mac

2014-02-22 Thread Sturla Molden
On 22/02/14 22:15, Nathaniel Smith wrote: $ make TARGET=SANDYBRIDGE USE_OPENMP=0 BINARY=64 NOFORTRAN=1 You'll definitely want to disable the affinity support too, and probably memory warmup. And possibly increase the maximum thread count, unless you'll only use the library on the computer it w

Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Nathaniel Smith
On Sat, Feb 22, 2014 at 5:17 PM, Matthew Brett wrote: > The discussion might become confusing in the conflation of: > > * backward incompatible changes to dot > * coherent behavior to propose in a PEP Right, I definitely am asking about how we think the "ideal" dot operator should work. The migra

Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Jaime Fernández del Río
On Feb 22, 2014 2:03 PM, "Nathaniel Smith" wrote: > > Hi all, > > Currently numpy's 'dot' acts a bit weird for ndim>2 or ndim<1. In > practice this doesn't usually matter much, because these are very > rarely used. But, I would like to nail down the behaviour so we can > say something precise in t

Re: [Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Matthew Brett
Hi, On Sat, Feb 22, 2014 at 2:03 PM, Nathaniel Smith wrote: > Hi all, > > Currently numpy's 'dot' acts a bit weird for ndim>2 or ndim<1. In > practice this doesn't usually matter much, because these are very > rarely used. But, I would like to nail down the behaviour so we can > say something pre

[Numpy-discussion] How exactly ought 'dot' to work?

2014-02-22 Thread Nathaniel Smith
Hi all, Currently numpy's 'dot' acts a bit weird for ndim>2 or ndim<1. In practice this doesn't usually matter much, because these are very rarely used. But, I would like to nail down the behaviour so we can say something precise in the matrix multiplication PEP. So here's one proposal. # CURRENT

[Numpy-discussion] A PEP for adding infix matrix multiply to Python

2014-02-22 Thread Nathaniel Smith
[Apologies for wide distribution -- please direct followups to either the github PR linked below, or else numpy-discussion@scipy.org] After the numpy-discussion thread about np.matrix a week or so back, I got curious and read the old PEPs that attempted to add better matrix/elementwise operators t

Re: [Numpy-discussion] OpenBLAS on Mac

2014-02-22 Thread Nathaniel Smith
On Sat, Feb 22, 2014 at 3:55 PM, Sturla Molden wrote: > On 20/02/14 17:57, Jurgen Van Gael wrote: >> Hi All, >> >> I run Mac OS X 10.9.1 and was trying to get OpenBLAS working for numpy. >> I've downloaded the OpenBLAS source and compiled it (thanks to Olivier >> Grisel). > > How? > > $ make TARGE

Re: [Numpy-discussion] OpenBLAS on Mac

2014-02-22 Thread Sturla Molden
On 22/02/14 22:00, Robert Kern wrote: > If you actually want some help, you will have to provide a *little* more > detail. $ git clone https://github.com/xianyi/OpenBLAS Oops... $ cd OpenBLAS did the trick. I need some coffee :) Sturla ___ N

Re: [Numpy-discussion] OpenBLAS on Mac

2014-02-22 Thread Robert Kern
On Sat, Feb 22, 2014 at 8:55 PM, Sturla Molden wrote: > On 20/02/14 17:57, Jurgen Van Gael wrote: >> Hi All, >> >> I run Mac OS X 10.9.1 and was trying to get OpenBLAS working for numpy. >> I've downloaded the OpenBLAS source and compiled it (thanks to Olivier >> Grisel). > > How? > > $ make TARGE

Re: [Numpy-discussion] OpenBLAS on Mac

2014-02-22 Thread Sturla Molden
On 20/02/14 17:57, Jurgen Van Gael wrote: > Hi All, > > I run Mac OS X 10.9.1 and was trying to get OpenBLAS working for numpy. > I've downloaded the OpenBLAS source and compiled it (thanks to Olivier > Grisel). How? $ make TARGET=SANDYBRIDGE USE_OPENMP=0 BINARY=64 NOFORTRAN=1 make: *** No target