#include <cmath>
#include <cstddef>
#include <type_traits>
#include <utility>
#include "clustering/ndarray.h"
#include "clustering/math/detail/distance_avx2.h"
Go to the source code of this file.
|
| template<class T, Layout LA, Layout LB> |
| T | clustering::math::distance::tag_invoke (const detail::PointwiseSqFn &, SqEuclideanTag, const NDArray< T, 1, LA > &a, const NDArray< T, 1, LB > &b) noexcept |
| | Squared Euclidean distance between two rank-1 NDArrays.
|
| template<class T, Layout LA, Layout LB> |
| T | clustering::math::distance::tag_invoke (const detail::PointwiseSqFn &, ManhattanTag, const NDArray< T, 1, LA > &a, const NDArray< T, 1, LB > &b) noexcept |
| | Manhattan (L1) distance between two rank-1 NDArrays.
|
| template<class T, Layout LA, Layout LB> |
| T | clustering::math::distance::tag_invoke (const detail::PointwiseSqFn &, CosineTag, const NDArray< T, 1, LA > &a, const NDArray< T, 1, LB > &b) noexcept |
| | Cosine distance between two rank-1 NDArrays.
|