static void Multiply() { //process is same for parallel SingleThreadedOperator op = new SingleThreadedOperator(); //two 5*3 matrices FastMatrix one = new FastMatrix(5, 3); FastMatrix two = new FastMatrix(3, 5); Utilities.FillMatrix(one, 5); Utilities.FillMatrix(two, 10); FastMatrix result = op.Multiply(one, two); result.Print(); }
static void Transpose() { //process is same for parallel SingleThreadedOperator op = new SingleThreadedOperator(); //5*3 matrix FastMatrix one = new FastMatrix(5, 3); Utilities.FillMatrix(one, 5); //10 will start at the bottom left and go to the top right one[0, one.GetSize(0) - 1] = 10; FastMatrix result = op.Transpose(one); result.Print(); }