Classwork 4 : Matrix Addition
What do mathematicians sleep on? Matrices!!
Last updated
What do mathematicians sleep on? Matrices!!
Last updated
A matrix is a rectangular arrangement of numbers into rows and columns. Each number in a matrix refers to a matrix element.
To perform matrix addition, you need to have two matrices of the same size. Then you can sum up the entries respectively.
Example:
We call the matrix above a matrix with entries to
Now, given another matrix
Since the size of and are the same, we can perform matrix addition:
Implement the code to perform matrix addition.