Distance computations (
distance module uses
pylibraft as a backend.
You need to install pylibraft package <https://anaconda.org/rapidsai/pylibraft> from
rapidsai Conda channel to use features listed on this page.
distance module is not supported on AMD ROCm platforms.
Distance matrix computations#
Distance matrix computation from a collection of raw observation vectors stored in a rectangular array.
Compute distance between each pair of the two collections of inputs.
Distance functions between two numeric vectors u and v. Computing distances over a large collection of vectors is inefficient for these functions. Use cdist for this purpose.
Compute the Minkowski distance between two 1-D arrays.