结构体 faiss::CMax

template<typename T_, typename TI_>
struct CMax

C 对象给出键值存储的值的类型 T、键的类型 TI 以及完成的比较:CMax 用于递减序列,CMin 用于递增序列。 换句话说,对于给定的阈值 threshold,如果以下情况,则保留传入值 x

C::cmp(threshold, x)
为真。

公共类型

typedef T_ T
typedef TI_ TI
typedef CMin<T_, TI_> Crev

公共静态函数

static inline bool cmp(T a, T b)
static inline bool cmp2(T a1, T b1, TI a2, TI b2)
static inline T neutral()
static inline T nextafter(T x)

公共静态属性

static const bool is_max = true