Abstract
AbstractThe numerical computation of the Euclidean norm of a vector is perfectly well conditioned with favorite a priori error estimates. Recently there is interest in computing a faithfully rounded approximation which means that there is no other floating-point number between the computed and the true real result. Hence the result is either the rounded to nearest result or its neighbor. Previous publications guarantee a faithfully rounded result for large dimension, but not the rounded to nearest result. In this note we present several new and fast algorithms producing a faithfully rounded result, as well as the first algorithm to compute the rounded to nearest result. Executable MATLAB codes are included. As a by product, a fast loop-free error-free vector transformation is given. That transforms a vector such that the sum remains unchanged but the condition number of the sum multiplies with the rounding error unit.
Funder
Technische Universität Hamburg
Publisher
Springer Science and Business Media LLC
Subject
Applied Mathematics,General Engineering
Reference32 articles.
1. Anderson, E.J.: Algorithm 978: safe scaling in the level 1 BLAS. ACM Trans. Math. Softw. 44(1), 12:1-12:28 (2017)
2. Bailey, D.H.: A Fortran-90 double-double precision library. http://crd.lbl.gov/~dhbailey/mpdist/
3. Blue, J.L.: A portable Fortran program to find the Euclidean norm of a vector. ACM Trans. Math. Softw. 4(1), 15–23 (1978)
4. Brent, R., Zimmermann, P.: Modern Computer Arithmetic. Cambridge University Press, New York, NY (2010)
5. Dekker, T.J.: A floating-point technique for extending the available precision. Numer. Math. 18, 224–242 (1971)