15,999,229 members
See more:
How to work with matrices and vectors in c++ or c#? How to set matrices of n by m, simply as in matlab that we say A=M*N, what are the needed namespaces or libraries?
Posted
There are many articles around the net. Just search on Google.
Sergey Alexandrovich Kryukov 12-Sep-14 22:19pm
Matrix multiplication is trivial, found in any relevant mathematics textbook. If you just act by definition, you can really easily define appropriate operators in both C++ and C#.
—SA

Solution 1

Matrix Decomposition[^]
C# Matrix Library[^]
Matrix multiplication[^]

Regards

Matt T Heffron 12-Sep-14 12:24pm

Solution 2

Please see my comment to the question.

First, matrix multiplication is quite a trivial mathematical operation. Please see, for example: http://en.wikipedia.org/wiki/Matrix_multiplication[^].

To code it, just act by definition.

Now, you can define appropriate operator '*' and use is exactly like in your `A=M*N` sample. This is all you need:
C++:
C#:
http://msdn.microsoft.com/en-us/library/8edha89s.aspx[^],
http://msdn.microsoft.com/en-us/library/aa288467%28v=vs.71%29.aspx[^] (old but quite usable).

—SA