Question: Write a variable size, templated matrix class which allows matrix multiplication. This class should take the size in constructor and should store the data in
Write a variable size, templated matrix class which allows matrix multiplication. This class should take the size in constructor and should store the data in a vector. You should implement copy constructor and assignment, subscript operator, functions to get the number of rows and columns. Matrix multiplication should be done using * operator but should be done in parallel using std::thread. You can use only two threads and you can assume the matrix size is a multiple of two. Demonstrate the usage of your class. You can add additional operators and functions but it is not necessary.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
