Struct faiss::VectorDistance

template<MetricType mt>
struct faiss::VectorDistance

Public Types

using C = typename std::conditional<mt == METRIC_INNER_PRODUCT, CMin<float, int64_t>, CMax<float, int64_t>>::type

Public Functions

inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const
inline float operator()(const float *x, const float *y) const

Public Members

size_t d
float metric_arg