Re: [Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar

2012-11-28 Thread Skipper Seabold
On Wed, Nov 28, 2012 at 12:31 PM, Sebastian Berg wrote: > Maybe a strict matrix product would make sense too, but the dot function > behavior cannot be changed in any case, so its pointless to argue about > it. Just make sure your arrays are 2-d (or matrices) if you want a > matrix product, which

Re: [Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar

2012-11-28 Thread Sebastian Berg
On Wed, 2012-11-28 at 11:11 -0500, Skipper Seabold wrote: > On Tue, Nov 27, 2012 at 11:16 AM, Sebastian Berg > wrote: > On Mon, 2012-11-26 at 13:54 -0500, Skipper Seabold wrote: > > I discovered this because scipy.optimize.fmin_powell appears > to > > squeeze 1d arg

Re: [Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar

2012-11-28 Thread Skipper Seabold
On Tue, Nov 27, 2012 at 11:16 AM, Sebastian Berg wrote: > On Mon, 2012-11-26 at 13:54 -0500, Skipper Seabold wrote: > > I discovered this because scipy.optimize.fmin_powell appears to > > squeeze 1d argmin to 0d unlike the other optimizers, but that's a > > different story. > > > > > > I would ex

Re: [Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar

2012-11-27 Thread Sebastian Berg
On Mon, 2012-11-26 at 13:54 -0500, Skipper Seabold wrote: > I discovered this because scipy.optimize.fmin_powell appears to > squeeze 1d argmin to 0d unlike the other optimizers, but that's a > different story. > > > I would expect the 0d array to behave like the 1d array not the 2d as > it does

[Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar

2012-11-26 Thread Skipper Seabold
I discovered this because scipy.optimize.fmin_powell appears to squeeze 1d argmin to 0d unlike the other optimizers, but that's a different story. I would expect the 0d array to behave like the 1d array not the 2d as it does below. Thoughts? Maybe too big of a pain to change this behavior if indee