Chapter 5, “Matrix Operations”

Equal Matrices

Two matrices are equal if

  • Both matrices have equal dimensions.

  • All corresponding entries are equal.

Adding Matrices

For two matrices of the same size, add the corresponding entries.

Subtracting Matrices

For two matrices of the same size, subtract the corresponding entries.

Scalar Multiplication

for any scalar value c and any size matrix A.

Multiplying Two 2×2 Matrices

Is the Product Defined?

For matrix multiplication AB, the number of columns in A must equal the number of rows in B.

Size of the Product ...

Get Beginning Math and Physics for Game Programmers 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.