[SciPy-user] [newb] how to create arrays
Fernando Perez
fperez.net at gmail.com
Wed Jan 2 22:09:42 EST 2008
On Jan 2, 2008 8:04 PM, Neal Becker <ndbecker2 at 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