public void Page_345() { B2 b2 = new B2(1, 2); b2.Show(); }
static void Main(string[] args) { Console.WriteLine("Enter n"); n = Convert.ToInt32(Console.ReadLine()); Task <Matrix> tGetA = new Task <Matrix>(() => Matrix.GetRandomMatrix(n, n)); Task <Matrix> tGet_b = new Task <Matrix>(() => get_b(n)); Task <Matrix> tGet_b1 = new Task <Matrix>(() => Matrix.GetRandomMatrix(n)); Task <Matrix> tGet_c1 = new Task <Matrix>(() => Matrix.GetRandomMatrix(n)); Task <Matrix> t_getA1 = new Task <Matrix>(() => Matrix.GetRandomMatrix(n, n)); Task <Matrix> t_getA2 = new Task <Matrix>(() => Matrix.GetRandomMatrix(n, n)); Task <Matrix> t_getB2 = new Task <Matrix>(() => Matrix.GetRandomMatrix(n, n)); Task <Matrix> t_getC2 = new Task <Matrix>(() => getC2(n)); Task <Matrix> t_get_y1 = new Task <Matrix>(() => get_y1(A, b)); Task <Matrix> t_get_y2 = new Task <Matrix>(() => get_y2(A1, b1, c1)); Task <Matrix> t_get_Y3 = new Task <Matrix>(() => getY3(A2, B2, C2)); Task <Matrix> t_first = new Task <Matrix>(() => getFirst(y1, y2, Y3)); Task <Matrix> t_second = new Task <Matrix>(() => getSecond(Y3)); Task <Matrix> t_third = new Task <Matrix>(() => getThird(y1, y2)); Task <Matrix> t_fourth = new Task <Matrix>(() => getFourth(y1, y2, Y3)); Task <Matrix> t_result = new Task <Matrix>(() => getResult(first, second, third, fourth)); tGetA.Start(); tGet_b.Start(); tGet_b1.Start(); tGet_c1.Start(); t_getA1.Start(); t_getA2.Start(); t_getB2.Start(); A = tGetA.Result; b = tGet_b.Result; t_get_y1.Start(); A1 = t_getA1.Result; b1 = tGet_b1.Result; c1 = tGet_c1.Result; t_get_y2.Start(); t_getC2.Start(); A2 = t_getA2.Result; B2 = t_getB2.Result; C2 = t_getC2.Result; t_get_Y3.Start(); y1 = t_get_y1.Result; y2 = t_get_y2.Result; Y3 = t_get_Y3.Result; t_first.Start(); t_second.Start(); t_third.Start(); t_fourth.Start(); first = t_first.Result; second = t_second.Result; third = t_third.Result; fourth = t_fourth.Result; t_result.Start(); result = t_result.Result; b1.Show("b1"); c1.Show("c1"); A.Show("A"); A1.Show("A1"); A2.Show("A2"); B2.Show("B2"); C2.Show("C2"); b.Show("b"); Console.WriteLine("Results"); y1.Show("y1"); y2.Show("y2"); Y3.Show("Y3"); result.Show("Result"); Console.ReadKey(); }