using System; namespace Science.Mathematics.LinearAlgebra { public class IdentityMatrix : Matrix { public IdentityMatrix(int dimension) : base(dimension, dimension) { for (int i = 0; i < dimension; i++) el[i, i] = 1.0; } } }