static void Main(string[] args) { const int N = 5; double[,] a = new double[N, N], b = new double[N, N], c = new double[N, N]; MatrixCalc calc = new MatrixCalc(a, b, c); // Fill in some values into arrays for (int i = 0; i < N; i++) { a[i, i] = 1; b[i, i] = 1; if (i > 0) { b[i, 0] = -i; a[0, i] = i; } } calc.Multiply(); // Debug.WriteLine("Result: {0}", calc.OK); }