O'Reilly logo

Beginning Math and Physics for Game Programmers by Wendy Stahler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required