Let vector v close to zero like {7.000e-07, 5.000e-06, 4.000e-07}. Is it good idea to multiply by, say, 1024, before normalization? Seems like such close values work good on PC where double is 80 bit internally and bad on ARM FPU.
Let vector v close to zero like {7.000e-07, 5.000e-06, 4.000e-07} . Is it good
Share
As long as none of the intermediate results in the computation you want to do underflow (that is, as long as they do not get close to 1E-308 in
double, 1E-38 infloat), it brings nothing to multiply by 1024.It would not lose anything to multiply by 1024 (except if it causes overflow), but other factors (say, 1000) would cause a loss of precision, too.