[Numpy-discussion] Help needed with the priority of 0d-arrays and np.scalars
Travis E. Oliphant
Tue Sep 30 16:18:13 CDT 2008
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 mailing list
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.
More information about the Numpy-discussion