Monday, September 7, 2009

ME 15 - Matrix Product/Multiplication

I am assuming that you already know what matrices are and the basic operations that can be applied to them. You can just Google it, anyways ^_^v.

For our last Machine Exercise, create a function that multiplies two matrices A and B and puts the result in matrix C, with the following prototype:

void mat_mul( int A[][MAX_COL], int B[][MAX_COL], int C[MAX_COL], int rowA, int colA, int colB );

Remember that multiplying an m x n matrix by an n x p matrix yields an m x p matrix.

Good luck!

No comments:

Post a Comment