1 | initial version |
Note that you are trying to multiply a matrix by a list. Instead of using a list you should use another matrix. Here's a way you can do it:
m = Matrix([[1, 0, 0],[0, 1, 0], [0, 0, 1]])
v = Matrix(3,1,[1,2,3])
m * v
Note several things
m = Matrix.identity(3)