Help me understand vector and matrix calculations

Hey guys

This question is a complication one. It's all about adding / Subtracting and multiplying matrices and vectors in c++.

These are the questions:

[1] [ 1]
[2] + [ 2]
[3] [ 5]
----------------------
[2] [1]
[1] - [1]
[3] [3]
----------------------
[1]
[4] x 5
[6]
---------------------
[2 2 0] [1]
[4 3 2] x [1]
[1 2 2] [2]
----------------------

Can someone explain to me the best method of working these out?

Topic archived. No new replies allowed.