Create a class called 'Matrix' containing constructor that initializes the number of rows and the number of columns of a new Mat

Question

Create a class called 'Matrix' containing constructor that initializes the number of rows and the number of columns of a new Matrix object. The Matrix class has the following information:

1 - number of rows of matrix

2 - number of columns of matrix

3 - elements of matrix (You can use 2D vector)

The Matrix class has functions for each of the following:

1 - get the number of rows

2 - get the number of columns

3 - set the elements of the matrix at a given position (i,j)

4 - adding two matrices.

5 - multiplying the two matrices

You can assume that the dimensions are correct for the multiplication and addition. In C++ programing

Details
Purchase An Answer Below

Have a similar question?