0
C program to multiply 2 matrices
2 Respuestas
+ 1
Aleena Antony
Try by yourself.
Then ask doubts.
Tips:
you can create two 2d integer arrays and multiply them by using loops.
And take every rows of first matrix and multiply them with every column of second matrix .
+ 1
Aleena Antony
they are many kind/ways to do matrix multiplication by another matrix:
1) A×B: common matrix multiplication
2) A•B: Hadamard multiplication
3) A⊗B: Kronecker multiplication
also, there are many way to store the matrix values (flat array, 2d array, vector, vector of vector...)...
asking for "C program to multiply 2 matrices" doesn't provide eniough informations about how the expected code should behavior ^^
anyway, this is a self learning app', not a code providers app': you could request for help on your own codes, but not asking people to write code for you ;P