Chapter 9. Basic Matrix Operations
Even the most basic matrix operations of addition, subtraction, and, especially, multiplication can put a strain on a computer's computational capabilities. The matrix operands do not have to be very big before they generate large numbers of individual floating-point operations. This is prime breeding ground for accumulated roundoff errors.
In this chapter, we'll begin to develop the numbercruncher.matrix
package. Its classes include Matrix
, SquareMatrix
, IdentityMatrix
, RowVector
, and ColumnVector
. We'll add class LinearSystem
for solving systems of simultaneous linear equations in Chapter 10 and class InvertibleMatrix
in Chapter 11. Figure 9-1 shows the inheritance tree for these classes.[1]
Figure 9-1. The inheritance ...
Get Java™ Number Cruncher: The Java Programmer's Guide to Numerical Computing 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.