[][src]Module half::vec

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 feature.

Traits

HalfBitsVecExt

Extensions to Vec<u16> to support reinterpret operations.

HalfFloatVecExt

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

Functions

from_bitsDeprecated

Converts a vector of u16 elements into a vector of f16 elements.

to_bitsDeprecated

Converts a vector of f16 elements into a vector of u16 elements.