Chapter 5

Implementation Considerations

5.1 Float-Point

Float-point (FP) arithmetic is ubiquitous in computer systems. However, it has been known that it is erroneous to compute with floating-point numbers and operations due to the finite precision.

5.1.1 Instabilities

FP suffers some well-known numerical instabilities [65]:

 Rounding generates an error.

 Non associativity. For instance, (a + b) + c and a + (b + c) are not necessarily identical.

Get GPU-based Parallel Implementation of Swarm Intelligence Algorithms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.