public void ToMatrixD() { Matrix22D m22 = new Matrix22D(1, 2, 3, 4); MatrixD m = m22.ToMatrixD(); for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { Assert.AreEqual(i * 2 + j + 1, m[i, j]); } } m = m22; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { Assert.AreEqual(i * 2 + j + 1, m[i, j]); } } }
public void ToMatrixD() { Matrix22D m22 = new Matrix22D(1, 2, 3, 4); MatrixD m = m22.ToMatrixD(); for (int i = 0; i < 2; i++) for (int j = 0; j < 2; j++) Assert.AreEqual(i * 2 + j + 1, m[i, j]); m = m22; for (int i = 0; i < 2; i++) for (int j = 0; j < 2; j++) Assert.AreEqual(i * 2 + j + 1, m[i, j]); }