Adding `scipy.spatial.distance.cdist` & `scipy.spatial.distance.pdist`
See original GitHub issueDescription
Would be good to have CuPy implementations of scipy.spatial.distance.cdist
and scipy.spatial.distance.pdist
. This would allow for fast distance computations with CuPy.
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
scipy.spatial.distance.pdist — SciPy v1.9.3 Manual
Computes the distance between m points using Euclidean distance (2-norm) as the distance metric between the points. The points are arranged as m...
Read more >How does condensed distance matrix work? (pdist)
A condensed distance matrix as returned by pdist can be converted to a full distance matrix by using scipy.spatial.distance.squareform :
Read more >cupyx.scipy.spatial.distance.cdist — CuPy 12.0.0b2 ...
cupyx.scipy.spatial.distance.cdist(XA, XB, metric='euclidean', out=None, ... Compute distance between each pair of the two collections of inputs. Parameters.
Read more >Python - Distance between collections of inputs - GeeksforGeeks
from scipy.spatial.distance import cdist. a = [[ 1 , 3 , 27 ], [ 3 , 6 , 8 ]]. arr1 = cdist(a,...
Read more >Implement all `scipy.spatial.distance` metrics in `_ ... - GitHub
This issue is to track progress of migrating scipy.spatial.distance per-metric cdist/pdist implementations from the original _distance_wrap module to the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are currently working to expose much of the scipy.spatial.distance package through RAFT into cupy.
Oops 😅 Didn’t realize there was already an issue. Let’s close here and follow up there 🙂