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

David Cournapeau david@ar.media.kyoto-u.ac...
Fri Mar 30 01:58:16 CDT 2007


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 
(including some which crashed the old clip).

    cheers,

    David


More information about the Numpy-discussion mailing list