0

C program to multiply 2 matrices

16th Jun 2021, 6:06 AM
Aleena Antony
Aleena Antony - avatar
2 Antworten
+ 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