Skip to navigation

Binary

View as Markdown

Source header: cuvs/core/dataset/binary.hpp

Types

binary_dictionary_view

Non-owning view of the dictionary that binarizes a dataset: the per-dimension thresholds of a binary quantizer. An empty threshold vector stands for the zero threshold.

template <typename MathT>
struct binary_dictionary_view {
raft::device_vector_view<const MathT, int64_t> threshold;
};

Fields

NameTypeDescription
thresholdraft::device_vector_view<const MathT, int64_t>

device_binary_dataset_view

Non-owning view of a binary-quantized dataset.

The data are bit-packed codes, ceil(dim / 8) bytes per row; bit i of a row is stored in bit i % 8 of byte i / 8, and the unused bits of the last byte are zero. The dictionary is the quantizer that produced the codes, so the logical dimension dim (the number of bits) never has to be guessed from the padded byte width.

template <typename MathT, typename IdxT>
struct device_binary_dataset_view;