Branded numeric type for 16-bit (half-precision) floating point numbers. Represents values that can be stored in a Float16Array.
const toFloat16 = (x: number): Float16 => { const arr = new Float16Array([x]); return arr[0] as Float16;};const halfPrecisionData = (_values: readonly Float16[]): void => { // Half-precision computations}; Copy
const toFloat16 = (x: number): Float16 => { const arr = new Float16Array([x]); return arr[0] as Float16;};const halfPrecisionData = (_values: readonly Float16[]): void => { // Half-precision computations};
Branded numeric type for 16-bit (half-precision) floating point numbers. Represents values that can be stored in a Float16Array.