[Numpy-discussion] Sintax differences
Fri Jun 20 04:59:57 CDT 2008
On Fri, Jun 20, 2008 at 4:28 AM, izak marais <firstname.lastname@example.org> wrote:
> Is there a reason why the syntax is rand(n,n), but zeros((n,n)) to create an
> n*n array? If not, perhaps this could be cleaned up?
SciPy's rand() is just a convenience wrapper:
Help on built-in function rand:
Return an array of the given dimensions which is initialized to
random numbers from a uniform distribution in the range [0,1).
rand(d0, d1, ..., dn) -> random values
Note: This is a convenience function. If you want an
interface that takes a tuple as the first argument
Nathan Bell email@example.com
More information about the Numpy-discussion