Skip to main content

Module ndarray

Module ndarray 

Source
Expand description

Conversions into ndarray types, for callers whose numeric code already uses it.

Enabled by the ndarray cargo feature. The core types stay Vec-based so the crate does not force a numeric dependency on anyone who does not want one.

Functionsยง

dense_array
The dense embedding as a 1-D array.
multivector_f16
A multivector as a [tokens, dims] array of f16, when the wire carried f16.
multivector_f32
A multivector as a [tokens, dims] array of f32.
sparse_to_dense
A sparse embedding as a dense array of dims elements.