Hi guys. I'm trying to calculate the Matrix product which is the sum of the products of elements from both matrices.
When i use the code below i get the elements of the new matrix in list form but surely if i'm finding the matrix product i need the sum of all these product elements.
I'm not sure how to get it so that all my numbers add up and give me a final value for C
I might be getting a bit confused here so any help would be really great!
Thanks guys
1 2 3 4 5 6 7 8 9 10
{
for ( int i = 0; i < 3; i++ )
for ( int j = 0; j < 3; j++ )
{
C =+ A[i][j]*B[i][j];
cout << C << endl;
}