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.