[Numpy-discussion] I've just commited a fast-clip function

Travis Oliphant oliphant at ee.byu.edu
Fri Mar 30 14:26:53 EDT 2007


David Cournapeau wrote:

>Travis Oliphant wrote:
>  
>
>>Hey folks,
>>
>>I've just committed a revision of ticket #425 to speed up clipping in 
>>the scalar case.  I also altered the PyArray_Conjugate function (called 
>>by the conjugate method) to use the ufunc for complex data. 
>>
>>These were some relatively largish changes to the source code (all 
>>behind the scences and no interface changes) --- enough to make me want 
>>to see some more testing. 
>> 
>>I would appreciate it, if people could test out the new clip function 
>>and conjugate method to make sure they are working well.  All tests 
>>pass, but there are some things we are not testing for.  I need to still 
>>add the clip tests from ticket #425 --- unless somebody beats me to it.
>>    
>>
>Hi Travis,
>
>    Would the test I included in the patch be OK, once converted to be 
>usable after your modifications ? They were covering many corner cases 
>  
>
Yes, the test functions should be fine (except there is no "fastclip" 
function).

-Travis




More information about the NumPy-Discussion mailing list