Module vec
Contains utility functions and traits to convert between vectors of u16 bits and [struct@f16] or
bf16 vectors.
The utility HalfBitsVecExt sealed extension trait is implemented for [Vec<u16>] vectors,
while the utility HalfFloatVecExt sealed extension trait is implemented for both
[Vec<f16>] and [Vec<bf16>] vectors. These traits provide efficient conversions and
reinterpret casting of larger buffers of floating point values, and are automatically included
in the [prelude][crate::prelude] module.
This module is only available with the std or alloc feature.
Traits
-
HalfBitsVecExt
Extensions to [
Vec<u16>] to support reinterpret operations. -
HalfFloatVecExt
Extensions to [
Vec<f16>] and [Vec<bf16>] to support reinterpret operations.