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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!