CSC 342.2
Lab 11
Write a driver program that
reads a number from the keyboard
Makes sure the number is either 2, 4, 8, or 16
Generates two nXn matrices, called m1 and m2.
Populates m1 and m2 with random numbers between 0 and 10
Outputs m1, m2 and m1*m2.
Assignment #6
Derive a new template of a class called Smatrix from Matrix
Override the existing multiplication operator using Strassen's method
In addition to the new multiplication operator, you will need to write the following private members functions:
make2X2
unmake2X2
strassen
Modify the driver from lab 11 so that
It creates identical copies of m1 and m2 called sm1 and sm2
Both sm1 and sm2 will be of the type Smatrix.
Additionally outputs sm1*sm2
Since sm1 and sm2 are the same as m1 and m2, you don't need to output them