[SciPy-user] Inconsistent function calls?

Ivo Maljevic ivo.maljevic@gmail....
Thu May 21 09:29:18 CDT 2009

Just as I was making up an example for the block diagonal matrix question, I
remembered the old problem I had with
consistency of nympy functions.

If you want to generate a random number matrix, you can make the same call
as with matlab:

rand(2,2) for 2x2 matrix,
randn(1,5) for 1x5 etc.

but if you want to generate ones or zeros matrices, you cannot say
ones(3,3), you have to write ones([3,3]) or zeros([3,3]) (note the extra

It is not a big deal, but it seems a bit inconsistent for me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20090521/547d41e1/attachment.html 

More information about the SciPy-user mailing list