[Numpy-discussion] What is an empty matrix ?

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed Jul 4 07:39:43 EDT 2007


David Cournapeau wrote:
> Hi,
>
>     I was wondering what an empty matrix is, and what it is useful for 
> (by empty matrix, I mean something created by numpy.matrix([])) ? Using 
> those crash some functions (see for example scipy ticket #381), and I am 
> not sure how to fix this bug.
>
>     David
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>   
empty(...)
    empty((d1,...,dn),dtype=float,order='C')

    Return a new array of shape (d1,...,dn) and given type with all its
    entries uninitialized. This can be faster than zeros.

Nils

 





More information about the NumPy-Discussion mailing list