[SciPy-user] [newb] how to create arrays

Fernando Perez fperez.net@gmail....
Wed Jan 2 21:09:42 CST 2008


On Jan 2, 2008 8:04 PM, Neal Becker <ndbecker2@gmail.com> wrote:
> How would I create a vector of complex random variables?
>
> I'm thinking the best way is to create a complex vector, then
> assign to the real and imag parts (using e.g., random.standard_normal).
>
> I don't see any way to create an uninitialized array.  I guess I'd have to
> use zeros?  Is there any way to avoid the wasted time of initializing just
> to write over it?

np.empty()

cheers,

f


More information about the SciPy-user mailing list