Expand description
The f32 vector bodies: the scalar references, the SIMD dispatch,
and the element-wise and reducing operations the vec_* nodes and
their native lowerings share, so both produce the same bytes.
Functionsยง
- add_f32
a + belement-wise, as a new vector.- add_
f32_ into a + belement-wise intoout, which is cleared first.- check_
lens - Panics with both lengths named when two operands differ in length.
- cosine_
f32 - The cosine similarity of
vec_cosine. - dot_f32
- The dot product, through the SIMD kernel where the host has one.
- dot_
scalar - The scalar dot product: the reference the SIMD kernel is checked against.
- hash_
vec_ into - The vector of
hash_vecintoout, which is cleared first. - l2sq_
f32 - The squared L2 distance, through the SIMD kernel where the host has one.
- l2sq_
scalar - The scalar squared L2 distance: the reference the SIMD kernel is checked against.
- lid_
mle_ of - The estimate of
lid_mle. - norm_
f32_ into ascaled to unit L2 magnitude intoout;aitself when its magnitude is zero.- scale_
f32 a * kelement-wise, as a new vector.- scale_
f32_ into a * kelement-wise intoout, which is cleared first.- xxhash3_
vec_ into - The vector of
xxhash3_vecintoout, which is cleared first.