Skip to main content

Module io

Module io 

Source
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 × ndims elements of T, tightly packed in row-major order

Structs§

Metadata
8-byte header at the start of a DiskANN binary file: npoints and ndims as little-endian u32.

Enums§

MetadataError
ReadBinError
Error type for read_bin.
SaveBinError
Error type for write_bin.

Functions§

read_bin
Read a matrix of T from the DiskANN binary format (see module docs).
write_bin
Write a matrix of T in the DiskANN binary format (see module docs).