[SciPy-Dev] scipy.spatial comments
Thu Mar 15 07:20:06 CDT 2012
15.03.2012 13:09, Jaakko Luttinen kirjoitti:
> On 03/11/2012 03:01 AM, Pauli Virtanen wrote:
>> 08.03.2012 13:40, Jaakko Luttinen kirjoitti:
>>> First, scipy/spatial/src/distance.c contains several interesting
>>> distance measures. However, the vector versions are not visible outside
>>> the file because they are not declared in distance.h (for instance,
>>> euclidean_distance). Only the pdist_* and cdist_* versions are made
>>> visible. I would like to use the "raw" distance measures directly for
>>> some other functions, so would it be ok to introduce those in distance.h?
> No, I'm not planning to expose them to Python. I'm writing some other
> functions in C (which I'll expose to Python) and these C functions could
> use the existing code for computing different distance measures between
> two vectors. So just adding the functions to distance.h would suffice.
Ok. I think at the moment we don't knowingly offer any C APIs in Scipy,
so there's no real guarantee of API stability here. In practice,
however, the distance.* stuff will probably stay more or less unchanged.
More information about the SciPy-Dev