Beispiel #1
0
	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]);
	}
Beispiel #2
0
    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]);
    }