public void ToList() { Matrix22F m = new Matrix22F(1, 2, 3, 4); IList <float> 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]); } }
public void ToList() { Matrix22F m = new Matrix22F(1, 2, 3, 4); IList<float> 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]); }