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

Scalar Multiplication

The preceding chapter discussed scalar multiplication with vectors. Remember, a vector is just a single row or single-column matrix, so scalar multiplication works the same way with matrices as it does with vectors. In fact, the preceding section had an example of scalar multiplication in the discussion of subtraction. At one point, there was a suggestion that rather than subtracting corresponding entries, you might want to add the negative of the second matrix. Flipping the sign of each entry is the same as multiplying the matrix by –1.

Scalar Multiplication

for any scalar value c and any size matrix A.

Just like flipping ...

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