예제 #1
0
        public void Determinant()
        {
            Matrix22D m = new Matrix22D(columnMajor, MatrixOrder.ColumnMajor);

            Assert.AreEqual(-2.0, m.Determinant());
            Assert.AreEqual(0.0, Matrix22D.Zero.Determinant());
            Assert.AreEqual(0.0, Matrix22D.One.Determinant());
            Assert.AreEqual(1.0, Matrix22D.Identity.Determinant());
        }