Module half::vec

source · []
Expand description

Contains utility functions and traits to convert between vectors of u16 bits and 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 module.

This module is only available with the std or alloc feature.

Traits

Extensions to Vec<u16> to support reinterpret operations.

Extensions to Vec<f16> and Vec<bf16> to support reinterpret operations.