Algorithm 1029: Encapsulated Error, a Direct Approach to Evaluate Floating-Point Accuracy - CEA - Université Paris-Saclay Access content directly
Journal Articles ACM Transactions on Mathematical Software Year : 2022

Algorithm 1029: Encapsulated Error, a Direct Approach to Evaluate Floating-Point Accuracy

Cédric Chevalier
  • Function : Author
  • PersonId : 952701
Pierre Dossantos-Uzarralde

Abstract

Floating-point numbers represent only a subset of real numbers. As such, floating-point arithmetic introduces approximations that can compound and have a significant impact on numerical simulations. We introduce encapsulated error, a new way to estimate the numerical error of an application and provide a reference implementation, the Shaman library. Our method uses dedicated arithmetic over a type that encapsulates both the result the user would have had with the original computation and an approximation of its numerical error. We thus can measure the number of significant digits of any result or intermediate result in a simulation. We show that this approach, although simple, gives results competitive with state-of-the-art methods. It has a smaller overhead, and it is compatible with parallelism, making it suitable for the study of large-scale applications.
Fichier principal
Vignette du fichier
3549205.pdf (1.57 Mo) Télécharger le fichier
Origin : Publication funded by an institution

Dates and versions

hal-04546429 , version 1 (06-05-2024)

Identifiers

Cite

Nestor Demeure, Cédric Chevalier, Christophe Denis, Pierre Dossantos-Uzarralde. Algorithm 1029: Encapsulated Error, a Direct Approach to Evaluate Floating-Point Accuracy. ACM Transactions on Mathematical Software, 2022, 48 (4), pp.47. ⟨10.1145/3549205⟩. ⟨hal-04546429⟩
5 View
0 Download

Altmetric

Share

Gmail Facebook X LinkedIn More