public static void Main(String[] args) { int n = 100; if (args.GetLength(0) >= 1) n = int.Parse(args[0]); n = n / 2 * 2; matmul_v1 m = new matmul_v1(); double[,] a, b, x; a = m.matgen(n); b = m.matgen(n); x = m.matmul(a, b); Console.WriteLine(x[n/2,n/2]); }
public static void Main(String[] args) { int n = 100; if (args.GetLength(0) >= 1) { n = int.Parse(args[0]); } n = n / 2 * 2; matmul_v1 m = new matmul_v1(); double[,] a, b, x; a = m.matgen(n); b = m.matgen(n); x = m.matmul(a, b); Console.WriteLine(x[n / 2, n / 2]); }