[Numpy-discussion] Help needed with the priority of 0d-arrays and np.scalars

Travis E. Oliphant oliphant@enthought....
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
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion

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 mailing list