[go: up one dir, main page]

[][src]Module half::vec

Contains utility functions to convert between vectors of u16 bits and f16 vectors.

This module is only available with the std feature.

Functions

from_bits

Converts a vector of u16 elements into a vector of f16 elements. This function merely reinterprets the contents of the vector, so it's a zero-copy operation.

to_bits

Converts a vector of f16 elements into a vector of u16 elements. This function merely reinterprets the contents of the vector, so it's a zero-copy operation.