[SciPy-user] Fwd: Scipy_core and numarray

Travis Oliphant oliphant at ee.byu.edu
Thu Oct 6 12:35:13 CDT 2005


Alan G Isaac wrote:

>>>Along the latter lines, I have a more practical question: one 
>>>numarray capability that I used a lot was the ability to create 
>>>uninitialized arrays, such as 
>>>     arr = numarray.array(shape=(3,5), type=Float64) 
>>>      
>>>
>
>On Thu, 06 Oct 2005, Robert Kern apparently wrote: 
>  
>
>>arr = scipy.empty((3,5), scipy.Float64) 
>>    
>>
>
>Can you please explain what "unitialized" means in this 
>context and what the advantage is over using zeros?
>
>Thank you,
>Alan Isaac
>  
>
It's faster.  Often you are going to fill the array with something.  So, 
why waste time filling it with zeros first...

-Travis



More information about the SciPy-user mailing list