[SciPy-user] Inconsistent function calls?

Alan G Isaac aisaac at american.edu
Thu May 21 11:18:18 EDT 2009


On 5/21/2009 10:46 AM Ivo Maljevic apparently wrote:
> if you write ones(3,3) you get an error message 

You can find a full discussion of this some time
back, and imo, NumPy has the superior (more explicit)
convention, especially given that it allows you to
simply specify the dtype of your array.

Also, while a 2d (matrix) focus might suggest to you
that ones(3) should be a 3 by 3 matrix, NumPy has
an nd-array focus, so a vector result is more natural.

Cheers,
Alan Isaac




More information about the SciPy-User mailing list