Linear Algebra - Multiplying a matrix and vector.

Click For Summary

Discussion Overview

The discussion revolves around the rules of matrix multiplication, particularly in the context of multiplying a matrix by a vector, as referenced in the OpenGL SuperBible 5th Edition. Participants explore the implications of matrix types, such as diagonal matrices, and the correct positioning of vectors in multiplication.

Discussion Character

  • Debate/contested
  • Technical explanation

Main Points Raised

  • One participant asserts that the vector should be on the right side of the matrix when multiplying, as per traditional linear algebra rules.
  • Another participant claims that the specific case of a diagonal matrix allows for different multiplication considerations.
  • A later reply questions the correctness of the initial claim about vector positioning, suggesting that the book may define multiplication differently.
  • One participant provides a specific example of matrix and vector multiplication to illustrate their point.
  • Another participant mentions the possibility of defining more general multiplication rules beyond the conventional row-column method.

Areas of Agreement / Disagreement

Participants express differing views on the correct positioning of vectors in matrix multiplication and whether the rules change for diagonal matrices. The discussion remains unresolved, with no consensus reached on the interpretation of the multiplication rules.

Contextual Notes

There are references to specific examples and methods of multiplication that may depend on definitions not fully explored in the discussion. Some participants suggest that the OpenGL SuperBible may present a non-standard approach to matrix multiplication.

jinksys
Messages
122
Reaction score
0
I am reading OpenGL SuperBible 5th Edition and noticed something off.
2jMWHl.jpg


I just took linear algebra and was always told to make sure that the rows and columns match when multiplying two matrices. The vector should be on the right side of the matrix, correct?
 
Physics news on Phys.org
Since the matrix is diagonal, it doesn't matter.
 
mathman said:
Since the matrix is diagonal, it doesn't matter.


How so?
 
you are correct. that's a mistake - it should be on the right.
 
Maybe that book defines matrix multiplication in a different way. But your example doesn't show this that much. Do you have a less simple example?
 
jinksys said:
I am reading OpenGL SuperBible 5th Edition and noticed something off.
2jMWHl.jpg


I just took linear algebra and was always told to make sure that the rows and columns match when multiplying two matrices. The vector should be on the right side of the matrix, correct?

You are correct. The diagram is incorrectly denoting the result of the square matrix premultiplying the column vector.
A matrix can be premultiplied by a row vector to yield another matrix, but there is no formal method of premultiplying a matrix directly by a column vector.
 
I believe mathman was referring to
\begin{bmatrix}a & b & c & d \end{bmatrix}\begin{bmatrix}t & 0 & 0 & 0 \\ 0 & u & 0 & 0 \\ 0 & 0 & v & 0 \\ 0 & 0 & 0 & w\end{bmatrix}
and
\begin{bmatrix}t & 0 & 0 & 0 \\ 0 & u & 0 & 0 \\ 0 & 0 & v & 0 \\ 0 & 0 & 0 & w\end{bmatrix}\begin{bmatrix}a \\ b\\ c \\ d\end{bmatrix}

Of course, that is not what is shown in the first post.
 
Hi, jinksys!

Nice of you to spot that error.

You should learn first the row*column-multiplication-type, although it is perfectly possible to define more general multiplication rules.
(And, this is done, for example by the highly general index-multiplication method)
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 69 ·
3
Replies
69
Views
10K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
10
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K