[Numpy-discussion] Scalar array - a trap for the unwary

Travis Oliphant oliphant.travis at ieee.org
Mon Jan 23 07:58:30 CST 2006


Colin J. Williams wrote:

> In exploring these matters, it seems that numpy does not broadcast 
> scalar operations on arrays, as numarray does.  Is this intended?  
> Please see the script below and the result under that.

I don't know what is going on with your installation, because I don't 
get that error.  Your script works fine for me.

I wouldn't advise extracting array directly from multiarray as you are 
doing, because exactly where array lives is an implementation detail 
that could change in the future.

-Travis





More information about the Numpy-discussion mailing list