C++ · Metrics

Metrics

#include <usearch/dense_index.hpp> 3.0.0-rc.1 · 4c3e5023

API

Classdense_index_tOwns one dense index; destruction waits for its deferred calls.31
dense_index.hpp:207 ↗
class dense_index_t
dense_index_t
dense_index.hpp:209 ↗
dense_index_t() noexcept=default;
dense_index_t(dense_index_t && other) noexcept;
dense_index_t(dense_index_t const &)=delete;
operator=
dense_index.hpp:211 ↗
dense_index_t & operator=(dense_index_t && other) noexcept;
dense_index_t & operator=(dense_index_t const &)=delete;
~dense_index_t
dense_index.hpp:214 ↗
~dense_index_t() noexcept;
reserveGrows the shards ahead of a number of incoming vectors.
dense_index.hpp:396 ↗
outcome reserve(
    usearch_dense_reserve_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses

clearErases all entries, keeping the reserved capacity and frozen geometry.
dense_index.hpp:408 ↗
outcome clear(
    usearch_dense_clear_t arguments = {},
    executor_t const & executor = {}) noexcept;

Statuses

insertAdds a run of vectors under their keys, all or nothing per call.
dense_index.hpp:420 ↗
outcome insert(
    usearch_dense_insert_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses

refineRefines the graph, answering its report: the nodes re-selected and changed, and the islands found and reconnected.
dense_index.hpp:442 ↗
outcome<usearch_refine_report_t> refine(
    usearch_dense_refine_t arguments = {},
    executor_t const & executor = {}) noexcept;

Statuses

healthAudits how much of the graph a search can reach.
dense_index.hpp:463 ↗
outcome<usearch_reachability_t> health(
    usearch_dense_health_t arguments = {},
    executor_t const & executor = {}) noexcept;

Statuses

absorbAbsorbs the donor indexes arguments names into this one, consuming them.
dense_index.hpp:480 ↗
outcome absorb(
    usearch_dense_absorb_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses

countAnswers how many entries arguments.key holds.
dense_index.hpp:512 ↗
outcome<std::size_t> count(
    usearch_dense_count_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses

getAnswers the vectors arguments.key holds; arguments.written counts them when the caller sets it.
dense_index.hpp:532 ↗
outcome<usearch_rows_view_t> get(
    usearch_dense_get_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

cursor_initOpens a cursor over every entry of the index.
dense_index.hpp:544 ↗
outcome<dense_cursor_t> cursor_init(
    usearch_dense_cursor_init_t arguments = {}) noexcept;

Statuses

cursor_nextAnswers the next keys cursor walks to; the entries and their count land where the caller points.
dense_index.hpp:558 ↗
outcome<usearch_keys_view_t> cursor_next(
    dense_cursor_t const & cursor,
    usearch_dense_cursor_next_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

search_stream_initOpens a stream of matches that later calls extend.
dense_index.hpp:570 ↗
outcome<dense_search_stream_t> search_stream_init(
    usearch_dense_search_stream_init_t arguments) noexcept;

Statuses

search_stream_nextAnswers the next matches of stream, writing them into arena.
dense_index.hpp:583 ↗
outcome<usearch_matches_view_t> search_stream_next(
    dense_search_stream_t const & stream,
    usearch_dense_search_stream_next_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

saveWrites the index to the checkpoint path arguments names.
dense_index.hpp:604 ↗
outcome save(
    usearch_dense_save_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses

  • usearch_status_contended_k A RAM save meeting an insertion in flight or one publishing under it, or a VRAM save meeting an insertion, refinement, absorption or another save in flight.
save_bufferWrites the index into one monolith in arena.
dense_index.hpp:625 ↗
outcome<usearch_bytes_view_t> save_buffer(
    usearch_dense_save_buffer_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

multiplyAnswers the products; their count and the width they needed land where the caller points.
dense_index.hpp:669 ↗
outcome<usearch_matches_tape_view_t> multiply(
    usearch_dense_multiply_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

attendAttends the query heads arguments names over the entries their walks score, writing the rows into arena.
dense_index.hpp:686 ↗
outcome<usearch_rows_view_t> attend(
    usearch_dense_attend_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

maxsimScores query groups by late interaction against the index, writing the matches into arena.
dense_index.hpp:702 ↗
outcome<usearch_matches_tape_view_t> maxsim(
    usearch_dense_maxsim_t arguments,
    arena_t const & arena,
    executor_t const & executor = {}) noexcept;

Statuses

init_ramCreates an empty RAM index of the geometry options freezes.
dense_index.hpp:228 ↗
outcome<dense_index_t> init_ram(
    usearch_dense_init_ram_t options) noexcept;

Statuses

  • usearch_status_config_mismatch_k Zero options.dimensions, dimensions a packed quantization leaves a storage value partly filled by, or a connectivity that is not a power of two.
init_vramCreates an empty VRAM index of the geometry options freezes, on the devices it names.
dense_index.hpp:240 ↗
outcome<dense_index_t> init_vram(
    usearch_dense_init_vram_t options) noexcept;

Statuses

  • usearch_status_config_mismatch_k Zero options.dimensions, a connectivity that is not a power of two, or on NVIDIA and AMD a geometry whose walks cannot fit the device's shared memory.
load_ramCopies a checkpoint into a new, mutable index in host memory.
dense_index.hpp:266 ↗
outcome<dense_index_t> load_ram(
    usearch_dense_load_ram_t options,
    executor_t const & executor = {}) noexcept;

Statuses

load_vramCopies a checkpoint into a new, mutable index in device memory.
dense_index.hpp:292 ↗
outcome<dense_index_t> load_vram(
    usearch_dense_load_vram_t options,
    executor_t const & executor = {}) noexcept;

Statuses

load_ram_bufferCopies a checkpoint from a memory buffer into a new, mutable index in host memory.
dense_index.hpp:319 ↗
outcome<dense_index_t> load_ram_buffer(
    usearch_dense_load_ram_buffer_t options,
    executor_t const & executor = {}) noexcept;

Statuses

load_vram_bufferCopies a checkpoint from a memory buffer into a new, mutable index in device memory.
dense_index.hpp:345 ↗
outcome<dense_index_t> load_vram_buffer(
    usearch_dense_load_vram_buffer_t options,
    executor_t const & executor = {}) noexcept;

Statuses

view_ramServes a checkpoint in place through a memory mapping, as a read-only index.
dense_index.hpp:357 ↗
outcome<dense_index_t> view_ram(
    usearch_dense_view_ram_t options) noexcept;

Statuses

view_nvmeServes a checkpoint in place from NVMe drives as a read-only index, every later call reading it through executor 's engines.
dense_index.hpp:378 ↗
outcome<dense_index_t> view_nvme(
    usearch_dense_view_nvme_t options,
    executor_t const & executor = {}) noexcept;

Statuses

metadata_readReads a checkpoint's geometry & metric without loading it.
dense_index.hpp:638 ↗
outcome<usearch_dense_metadata_t> metadata_read(
    usearch_dense_metadata_read_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses

metadata_read_bufferReads geometry & metric from a serialized checkpoint buffer.
dense_index.hpp:653 ↗
outcome<usearch_dense_metadata_t> metadata_read_buffer(
    usearch_dense_metadata_read_buffer_t arguments,
    executor_t const & executor = {}) noexcept;

Statuses