Matrices Multiplication

# Matrix Multiplication in C

```/*
----------------------------------------------------------------------------
Function    : multiplyMatrices
Description : Multiply two matrices. Note: The resultmatrix can be reused
for multiple matrix multiplications - no need to preintialize
the array with '0'.
----------------------------------------------------------------------------
*/
inline void multiplyMatrices(int matrixA[200][200], int aRows, int aCols,
int matrixB[200][200], int bRows, int bCols,
int resultMatrix[200][200]) {

/* ---------------------------------------------------------------------*/
// Perform the matrix multiplication with the 'Einstein Summation' method
/* ---------------------------------------------------------------------*/
int i, j, k, sum;
for( i = 0; i < aRows; i++ ) {
for( j = 0; j < bCols; j++ ) {
for( k = 0, sum = 0; k < aCols; k++ ) {
// Example:
// [1 1] [1 1]
// [2 2] [1 1] = [2 2]
//               [4 4]
sum += matrixA[i][k] * matrixB[k][j];
}
resultMatrix[i][j] = sum;
}
}
}
```

## Matrix Multiplication Methods

http://en.wikipedia.org/wiki/Matrix_multiplication

## Matrix Problems/Exercises

http://ceee.rice.edu/Books/LA/mult/mult4.html#TOP