[Numpy-discussion] Initialization of array?

Daehyok Shin sdhyok at email.unc.edu
Wed Nov 29 14:28:57 CST 2000


When I initialize an array, I use
a = ones(shape)*initial_val

But, I am wondering if Numpy has more efficient way.
For example,
a = array(initial_value, shape)

Peter




More information about the Numpy-discussion mailing list