vecs_file

Crates.iovecs_file
lib.rsvecs_file
version0.1.0
sourcesrc
created_at2024-03-14 07:00:04.887533
updated_at2024-03-14 07:00:04.887533
descriptionvecs file reader (fvecs, ivecs, bvecs)
homepage
repositoryhttps://github.com/fclaude/vecs_file
max_upload_size
id1173076
size11,380
Francisco Claude (fclaude)

documentation

README

Vecs_file

Crate for reading the format used for DEEP1B.

Usage

Read a file with read_vecs_file. You can read i32, f32 and u8 vecs files.

vecs_file::read_vecs_file::<i32>(path_to_file);

read_vecs_file returns a Result that is either a structure called Vectors<T> of a VecsError. The Vectors<T> structure implements functions to access individual vectors.

The crate also provides utility functions to write a vecs file, and a reader/writer from a stream. This allows reading/writing by blocks if needed.

Commit count: 0

cargo fmt