Skip to main content

unit_scale

Function unit_scale 

Source
pub fn unit_scale(size: f64) -> f64
Expand description

A power of two by which a vector whose largest component is size comes near one in size.

The scaled size is from 2^-74 to 2^24, so that a product of two of its components neither overflows nor underflows. The scale is exact. It is one for a size that is zero or not finite.