Let’s say A is an mxn matrix and B is an nxp matrix. If we multiply these two matrices, we will get another matrix C such that:
Here, Ci,j indicates the element in the ith row and jth column of matrix C. Similarly, Ai,m indicates the element in the ith row and mth column of matrix A. And Bm,j indicates the element in the mth row and jth column of the matrix B.
Please note that two matrices A and B can multiplied only when the number of columns of matrix A is equal to the number of rows of matrix B. And if A is an mxn matrix and B is an nxp matrix, then after multiplying A and B we will get an mxp matrix.
Let’s look at an example. Let’s say A and B are two matrices with the following elements.
So, if we multiply A and B, we will get another matrix C, such that:
Please note that here A is a 2×3 matrix and B is a 3×3 matrix. So, after multiplying A and B we get a 2×3 matrix.
…
0 Comments