Define a templated class that represents two dimensional arrays include at least a constructor, an element access method, a resize method, and a destructor. Using your class, write a function that performs integer matrix multiplication. Here 1s an example that performs this matrix multipllcatioln 5 9) (13 11 ) 1 2 1 2 1) 2 1 3 x 0 3) 3 2) int main() f twoDarray<int> A(2, 3), B(3, 2), C(1, 1); A.get(0,0) A.get (1,0) 1; 2; A.get(0,1) A.get (1,1) 2; 1; A.get(0,2) A.get (1,2) 1; 3; = = = = = = B.get(0,0) B.get (1, 0) B.get (2,0) = 2; = 0; =3; B.get (0,1) B.get (1, 1) B.get (2,1) 1; 3; 2; = = = multiply (A, B, C); print(C); But you should test your implementation of the class more thoroughly than just trying that one example,

Define a templated class that represents two dimensional arrays include at least a constructor, an element access method, a resize method, and a destructor. Using your class, write a function that performs integer matrix multiplication. Here 1s an example that performs this matrix multipllcatioln 5 9) (13 11 ) 1 2 1 2 1) 2 1 3 x 0 3) 3 2) int main() f twoDarray A(2, 3), B(3, 2), C(1, 1); A.get(0,0) A.get (1,0) 1; 2; A.get(0,1) A.get (1,1) 2; 1; A.get(0,2) A.get (1,2) 1; 3; = = = = = = B.get(0,0) B.get (1, 0) B.get (2,0) = 2; = 0; =3; B.get (0,1) B.get (1, 1) B.get (2,1) 1; 3; 2; = = = multiply (A, B, C); print(C); But you should test your implementation of the class more thoroughly than just trying that one example, Show transcribed image text Define a templated class that represents two dimensional arrays include at least a constructor, an element access method, a resize method, and a destructor. Using your class, write a function that performs integer matrix multiplication. Here 1s an example that performs this matrix multipllcatioln 5 9) (13 11 ) 1 2 1 2 1) 2 1 3 x 0 3) 3 2) int main() f twoDarray A(2, 3), B(3, 2), C(1, 1); A.get(0,0) A.get (1,0) 1; 2; A.get(0,1) A.get (1,1) 2; 1; A.get(0,2) A.get (1,2) 1; 3; = = = = = = B.get(0,0) B.get (1, 0) B.get (2,0) = 2; = 0; =3; B.get (0,1) B.get (1, 1) B.get (2,1) 1; 3; 2; = = = multiply (A, B, C); print(C); But you should test your implementation of the class more thoroughly than just trying that one example,