示例#1
0
        public void Addition()
        {
            Matrix22D m1     = new Matrix22D(columnMajor, MatrixOrder.ColumnMajor);
            Matrix22D m2     = Matrix22D.One;
            Matrix22D result = Matrix22D.Add(m1, m2);

            for (int i = 0; i < 4; i++)
            {
                Assert.AreEqual(rowMajor[i] + 1.0, result[i]);
            }
        }