Matrix with unique pointer in c++

profilealecalin366
matrix.docx

I have to create a matrix with unique pointers and do the following :

1.Matrix a, b

2.Matrix c(b)

3.Matrix d=a

4.Matrix e=a+b

Every element from matrix is a unique pointer. First, I have to create a class matrix with constructor destructor(rule of 5 if it is possible).

At first in main, I have to create 2 object a, b, Matrix type.

At 2.I have to create another object c that have as constructor the object b

3.to copy all element from matrix a to d

4.To add Matrix a with Matrix b and the sum to be copy in Matrix e