Java Program to perform Matrix Addition, Subtraction and multiplication
Addition & Subtraction:
Matrix Addition/Subtraction is Cumulative.
A + B = B + A
Both Matrix Must have Same number of rows and columns.
Multiplication:
The number of columns in First Matrix must match the Number of rows in the Second Matrix. i.e
Rows of A = Columns of B
A x B is not equal to B x A
The resulting Matrix has Number of Rows of A and Number of Columns of B.
The product is defined is:
(m x n) . (n x k) = (m x k)
#CodingHelpLine
Comments