public void ToArray1D() { Matrix44D m = new Matrix44D(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); double[] array = m.ToArray1D(MatrixOrder.RowMajor); for (int i = 0; i < 16; i++) Assert.AreEqual(rowMajor[i], array[i]); array = m.ToArray1D(MatrixOrder.ColumnMajor); for (int i = 0; i < 16; i++) Assert.AreEqual(columnMajor[i], array[i]); }