answersLogoWhite

0


Best Answer

it would have a part in it like this:

for (i=0; i<n; ++i) {

. for (j=0; j<l; ++j) {

. . sum= 0;

. . for (k=0; k<m; ++k) {

. . . sum += a[i][k] * b[k][j];

. . }

. . c[i][j] = sum;

. }

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a C-program for matrix multiplication?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

2x2 matrix multiplication program in 8085 processor?

how to write a program for matrix multiplication in microprocesspr


Matrix multiplication is not commutative?

That is true, matrix multiplication is not commutative.


Are matrix addition and matrix multiplication commutative?

Matrix addition is commutative if the elements in the matrices are themselves commutative.Matrix multiplication is not commutative.


How do you write a program of matrix multiplication in a simple way?

you can write by two ways 1 by giving the size of array at declaration 2 by checking condition


Cannon matrix multiplication program?

maltiplication of matrix for algorithme


What is matrix multiplication about?

Matrix multiplication typically refers to an operation which yields a new matrix from a pair of matrices which are already known. This is normally covered in an Algebra class or textbook.


Matrix multiplication can be used to rotate figures in the plane.What is the matrix product?

13


How many multiplication there is in strassen's matrix?

7


What is the order of strassen's matrix multiplication?

ghanto


How are the inverse matrix and identity matrix related?

If an identity matrix is the answer to a problem under matrix multiplication, then each of the two matrices is an inverse matrix of the other.


What is the difference between scalar multiplication and matrix multiplication?

Matrix multiplication is when you multiply the numbers inside different matricies.[topleft#1]Xtopleft#2=top left topright#1XBottomleft=top right bottom left X Topleft=top left bottom rightX bottom right=bottom right Scalar multiplication A number out side a matrix multiplies all parts of the matrix


Matrix multiplication using mpi?

Check related links