public void IdenMatrix2() { Assert.AreEqual(TS.CreateIdentityMatrix(3), TS.CreateMatrix(new int[, ] { { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } })); }
static TS CreateMatrix(int size) => TS.CreateMatrix(size, size, (x, y) => (x + y));
public void IdenMatrix1() { Assert.AreEqual(TS.CreateIdentityMatrix(1), TS.CreateMatrix(new int[, ] { { 1 } })); }