The kernel the core runs for this operator on this host ("scalar" in wasm).
Representatives, n * dim float32, row i for encoding.ids[i]. Not normalized.
Release the native handle. Idempotent; later use raises InvalidInput.
Encode n unit-norm float32 rows (vectors.length === n * dim,
row-major) under ids. u64 ids are bigint[], utf8 ids string[];
idKind is inferred from the first id and required when n = 0.
Row errors carry the input row index.
StaticcreateThe constructor. Loads the runtime when it is not loaded yet.
StaticorbitA codec for CodecConfig.orbit(dim, scale): one discrete symbol per coordinate. Loads the module if needed.
StaticphaseA codec for CodecConfig.phase(dim, sectors): angular sector per coordinate pair. Loads the module if needed.
StaticquantA codec for CodecConfig.quant(dim, bins): sign and magnitude bin per coordinate. Loads the module if needed.
An immutable encoder for one CodecConfig. Codec.create is the one asynchronous point of the package: it loads the wasm module on first use. Call Codec.dispose when done; a finalizer frees the native handle otherwise.