On Tuesday 30 September 2008 17:18:13 Travis E. Oliphant wrote:
> Hmm... I'm not 100% sure off the top of my head, but I would say that
> 0d arrays should determine the type coercion if any and the returned
> thing should be a numpy scalar.
Travis,
I'm afraid I don't understand. According to you
Pierre GM wrote:
> Sorry to bump my own post, I know it's rude...
>
> However, I'm in dire need for some pointers: what are the priority rules when
> multiplying numpy scalars and 0d ndarrays ?
>
> Thanks a lot in advance
> ___
> Numpy-discussion mailin
Sorry to bump my own post, I know it's rude...
However, I'm in dire need for some pointers: what are the priority rules when
multiplying numpy scalars and 0d ndarrays ?
Thanks a lot in advance
___
Numpy-discussion mailing list
Numpy-discussion@scipy.o
All,
In a recent post, I was pointing to a bug in numpy.ma. I think I can
understand what happens, but I'd need a couple of clarifications.
When multiplying a 0d ndarrray or one of its subclass by a numpy scalar, we
end up with a numpy scalar cast to the highest type, right ?
So, np.float64(1)*n