Design a class to perform various matrix operations. A m set of numbers arranged in rows and columns. Theref element of a matrix has a row position and a column position. If matrix of five rows and six columns, we say that the matrix A i size 5 × 6 and sometimes denote it as A5x6. to store a matrix is in a two-dimensional array. Two matrices can be added and subtracted if they have the same size. Suppose A = [a,Jane B = [b] are two matrices of the size mx n, in which azj denotesthe element of A in the ith row and the jth column, and so on. The sum and difference of A and B are given by matrix is a s of the Clearly, a convenient place The multiplication of A and B (A B) is defined only if the number of columns of A is the same as the number of rows of B. If A is of the size hn × n and B is of the size n × t, then A * B = [a] is of the size m × t and the element cik is given by the formula: Design and implement a class matrixType that can store a of any size. Overload the operators +,-, and to perform the a subtraction, and multiplication operations, respectively, and ove the operator << to output a matrix. Also, write a test program to various operations on the matrices. ma rload

Design a class to perform various matrix operations. A m set of numbers arranged in rows and columns. Theref element of a matrix has a row position and a column position. If matrix of five rows and six columns, we say that the matrix A i size 5 × 6 and sometimes denote it as A5x6. to store a matrix is in a two-dimensional array. Two matrices can be added and subtracted if they have the same size. Suppose A = [a,Jane B = [b] are two matrices of the size mx n, in which azj denotesthe element of A in the ith row and the jth column, and so on. The sum and difference of A and B are given by matrix is a s of the Clearly, a convenient place The multiplication of A and B (A B) is defined only if the number of columns of A is the same as the number of rows of B. If A is of the size hn × n and B is of the size n × t, then A * B = [a] is of the size m × t and the element cik is given by the formula: Design and implement a class matrixType that can store a of any size. Overload the operators +,-, and to perform the a subtraction, and multiplication operations, respectively, and ove the operator Show transcribed image text Design a class to perform various matrix operations. A m set of numbers arranged in rows and columns. Theref element of a matrix has a row position and a column position. If matrix of five rows and six columns, we say that the matrix A i size 5 × 6 and sometimes denote it as A5x6. to store a matrix is in a two-dimensional array. Two matrices can be added and subtracted if they have the same size. Suppose A = [a,Jane B = [b] are two matrices of the size mx n, in which azj denotesthe element of A in the ith row and the jth column, and so on. The sum and difference of A and B are given by matrix is a s of the Clearly, a convenient place The multiplication of A and B (A B) is defined only if the number of columns of A is the same as the number of rows of B. If A is of the size hn × n and B is of the size n × t, then A * B = [a] is of the size m × t and the element cik is given by the formula: Design and implement a class matrixType that can store a of any size. Overload the operators +,-, and to perform the a subtraction, and multiplication operations, respectively, and ove the operator