4 research outputs found

    Sharp error bounds for complex floating-point inversion

    Get PDF
    International audienceWe study the accuracy of the classic algorithm for inverting a complex number given by its real and imaginary parts as floating-point numbers. Our analyses are done in binary floating-point arithmetic, with an unbounded exponent range and in precision pp; we also assume that the basic arithmetic operations (++, −-, ×\times, //) are rounded to nearest, so that the roundoff unit is u=2−pu = 2^{-p}. We bound the largest relative error in the computed inverse either in the componentwise or in the normwise sense. We prove the componentwise relative error bound 3u3u for the complex inversion algorithm (assuming p≥4p \ge 4), and we show that this bound is asymptotically optimal (as p→∞p\to \infty) when pp is even, and sharp when using one of the basic IEEE 754 binary formats with an odd precision (p=53,113p=53,113). This componentwise bound obviously leads to the same bound 3u3u for the normwise relative error. However, we prove that the smaller bound 2.707131u2.707131u holds (assuming p≥24p \ge 24) for the normwise relative error, and we illustrate the sharpness of this bound for the basic IEEE 754 binary formats (p=24,53,113p=24, 53, 113) using numerical examples

    Proposed Consistent Exception Handling for the BLAS and LAPACK

    Full text link
    Numerical exceptions, which may be caused by overflow, operations like division by 0 or sqrt(-1), or convergence failures, are unavoidable in many cases, in particular when software is used on unforeseen and difficult inputs. As more aspects of society become automated, e.g., self-driving cars, health monitors, and cyber-physical systems more generally, it is becoming increasingly important to design software that is resilient to exceptions, and that responds to them in a consistent way. Consistency is needed to allow users to build higher-level software that is also resilient and consistent (and so on recursively). In this paper we explore the design space of consistent exception handling for the widely used BLAS and LAPACK linear algebra libraries, pointing out a variety of instances of inconsistent exception handling in the current versions, and propose a new design that balances consistency, complexity, ease of use, and performance. Some compromises are needed, because there are preexisting inconsistencies that are outside our control, including in or between existing vendor BLAS implementations, different programming languages, and even compilers for the same programming language. And user requests from our surveys are quite diverse. We also propose our design as a possible model for other numerical software, and welcome comments on our design choices

    Efficient scaling for complex division

    No full text
    corecore