Professional Documents
Culture Documents
• https
://www.programmingsimplified.com/c-program-multiply-matrices
Problem 3.
• Write a function matrixSumRows(), that takes as parameter a matrix
and returns an array with one element for each row of the matrix; the
element of index i of the array must be equal to the sum of the
elements of row i of the matrix.
PROBLEM 4.
• Write a function transposeMatrix() that returns a new matrix that is
the transpose of the matrix M. We recall that the transpose of a
matrix M is obtained by exchanging the rows with the columns, which
corresponds to exchange Mij with Mji], for each pair of valid indexes i
and j.
PROBLEM 5.
• A matrix M is said to be symmetric if it is square (i.e., has the same
number of rows and columns) and Mij is equal to Mji, for each pair of
valid indexes i and j. Write a symmetricMatrix() that returns true if the
matrix M is symmetric, and false otherwise.