static void Main(string[] args) { var a = new SquareMatrix <int>(MatrixGenerator.GenerateIntSquareMatrix(5)); a[3, 3] = 5; a[2, 4] = 3; Print(a); Console.WriteLine(); var b = new SymmetricMatrix <int>(MatrixGenerator.GenerateIntSymmetricMatrix(5)); b[1, 0] = 5; b[2, 1] = 3; Print(b); Console.WriteLine(); var c = new DiagonalMatrix <int>(MatrixGenerator.GenerateIntDiagonalMatrix(5)); c[0, 0] = 5; c[1, 1] = 3; Print(c); }