Expand description
Read and write vectors in the DiskANN binary format.
The binary format is:
- 8-byte header
npoints(u32 LE)ndims(u32 LE)
- Payload:
npoints × ndimselements ofT, tightly packed in row-major order
Structs§
- Metadata
- 8-byte header at the start of a DiskANN binary file:
npointsandndimsas little-endian u32.
Enums§
- Metadata
Error - Read
BinError - Error type for
read_bin. - Save
BinError - Error type for
write_bin.
Functions§
- read_
bin - Read a matrix of
Tfrom the DiskANN binary format (see module docs). - write_
bin - Write a matrix of
Tin the DiskANN binary format (see module docs).