C program to multiply 2 matrices | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

C program to multiply 2 matrices

16th Jun 2021, 6:06 AM
Aleena Antony
Aleena Antony - avatar
2 Respostas
+ 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 .
16th Jun 2021, 6:23 AM
Ėœā€*Ā°ā€¢.Ėœā€*Ā°ā€¢ Mohan 333 ā€¢Ā°*ā€Ėœ.ā€¢Ā°*ā€Ėœ
Ėœā€*Ā°ā€¢.Ėœā€*Ā°ā€¢ Mohan 333 ā€¢Ā°*ā€Ėœ.ā€¢Ā°*ā€Ėœ - avatar
+ 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
16th Jun 2021, 7:05 PM
visph
visph - avatar