Beispiel #1
0
        public void ToList()
        {
            Matrix22D      m    = new Matrix22D(1, 2, 3, 4);
            IList <double> list = m.ToList(MatrixOrder.RowMajor);

            for (int i = 0; i < 4; i++)
            {
                Assert.AreEqual(rowMajor[i], list[i]);
            }
            list = m.ToList(MatrixOrder.ColumnMajor);
            for (int i = 0; i < 4; i++)
            {
                Assert.AreEqual(columnMajor[i], list[i]);
            }
        }
Beispiel #2
0
 public void ToList()
 {
     Matrix22D m = new Matrix22D(1, 2, 3, 4);
       IList<double> list = m.ToList(MatrixOrder.RowMajor);
       for (int i = 0; i < 4; i++)
     Assert.AreEqual(rowMajor[i], list[i]);
       list = m.ToList(MatrixOrder.ColumnMajor);
       for (int i = 0; i < 4; i++)
     Assert.AreEqual(columnMajor[i], list[i]);
 }