[Numpy-discussion] Best way to compare two implementations of the same numpy function ?

David Cournapeau david at ar.media.kyoto-u.ac.jp
Tue Jan 16 07:57:51 EST 2007


    I am finalizing my patch to SVN numpy to improve the clip function. 
I managed to modify the code so that the generated C sources are 
generated through the genapi system in numpy/core, etc.... and it 
compiles fine.
    The only problem I have left is "where" to expose the function to 
numpy ? I would like to have a new function to be able to test against 
the old version (I have a few tens of tests to compare results between 
current numpy clip and my function), but I am not sure how to do it so 
it can be commited as a patch to numpy SVN (if the patch is found 
acceptable by numpy developers, of cours),



More information about the NumPy-Discussion mailing list