Computes the log power of two we'd need to scale by so that the max double is between (2 ** scaleConstant, 2 ** -scaleConstant).
Computes the log power of two we'd need to scale by so that the max double is between (2 ** scaleConstant, 2 ** -scaleConstant).
Ensures that the max double is between (2**scaleConstant,2**-scaleConstant), scaling the array as necessary.
Ensures that the max double is between (2**scaleConstant,2**-scaleConstant), scaling the array as necessary.
newScale
the largest (log) power of two we want to deal with
Converts the scaled value into "normal" space
Converts the scaled value into "normal" space
Sums src
into dest
assuming they're at different scales.
Sums src
into dest
assuming they're at different scales. src
may be longer than
dest
, which is useful for allocating a large work buffer.
the new scale
Converts the scaled value into "normal" space
Converts the scaled value into "normal" space