[Numpy-discussion] API inconsistencies

Albert Strasheim fullung at gmail.com
Thu May 4 13:59:04 EDT 2006


Hello all

I noticed some inconsistencies in the NumPy API that might warrant some
attention. On the one hand we have functions like the following:

empty((d1,...,dn),dtype=int,order='C')
empty((d1,...,dn),dtype=int,order='C')
ones(shape, dtype=int_) (no order?)

whereas the functions for generating random matrices look like this:

rand(d0, d1, ..., dn)
randn(d0, d1, ..., dn)

Was this done for a specific reason? Numeric compatibility perhaps? Is this
something that should be changed?

Thanks!

Regards,

Albert





More information about the NumPy-Discussion mailing list