I know this thread is about shaders (and matrix) and don't want to turn this shader/matrix thread into a math/matrix thread but I think I've probably seen the matrix before (probably in 11th grade in high-school) and I do have a question.

In the matrix, is it something like you add or subtract like for example:

(By the way, it seems like you have added a plus sign in between the two of the numbers/letters...)

Code:

{10 15 25} {20 10 15} {30 + 25 + 40}
{ 5 20 10} + (15 5 40} = {20 + 25 + 50}
{30 0 5} {10 20 25} {40 + 20 + 30}



...and...

Code:

{50 25 15} {30 10 10} {20 + 15 + 5}
{45 30 55} - {15 20 45} = {30 + 10 + 10}
{60 20 35} {15 5 20} {45 + 15 + 15}



And is it the same thing as if you multiply or divide?

If no, please correct me if I'm wrong.

The reason I ask is this is pretty fascinating... Gonna have to get my memory refreshed...