Skip to main content

int8_codes

Function int8_codes 

Source
pub fn int8_codes(fp: FpUnit, x: &[f32], inv: f32) -> Vec<i8>
Expand description

The int8 codes of x under the inverse scale inv: each x·inv to the nearest integer, ties to even, within ±127, a NaN product zero; every code zero when inv is infinite, the reciprocal of a scale that rounded to zero.