Skip to Content
GPGPU Programming for Games and Science
book

GPGPU Programming for Games and Science

by David H. Eberly
August 2014
Intermediate to advanced
469 pages
16h 30m
English
A K Peters/CRC Press
Content preview from GPGPU Programming for Games and Science
30 GPGPU Programming for Games and Science
You are more familiar with the notation using fractions,
r
0
+ r
1
=
x
0
y
0
+
x
1
y
1
=
x
0
y
1
+ x
1
y
0
y
0
y
1
(2.31)
where the sum is computed by constructing the common denominator of the
two fractions. Observe that the components of the 2-tuple are computed us-
ing multiplication and addition of binary scientific numbers, something we
already know how to do with a computer implementation (class
BSNumber).
Subtraction is defined similarly:
r
0
r
1
=(x
0
y
1
x
1
y
0
,y
0
y
1
) (2.32)
Multiplication of two ratios is defined as
r
0
r
1
=(x
0
x
1
,y
0
y
1
) (2.33)
where in fraction notation,
r
0
r
1
=
x
0
y
0
x
1
y
1
=
x
0
x
1
y
0
y
1
(2.34)
Division is similarly defined a
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Graphics Gems V (IBM Version)

Graphics Gems V (IBM Version)

Alan W. Paeth
GPU Pro 6

GPU Pro 6

Wolfgang Engel

Publisher Resources

ISBN: 9781466595354