public void ToArray1D() { Matrix22F m = new Matrix22F(1, 2, 3, 4); float[] array = m.ToArray1D(MatrixOrder.RowMajor); for (int i = 0; i < 4; i++) { Assert.AreEqual(rowMajor[i], array[i]); } array = m.ToArray1D(MatrixOrder.ColumnMajor); for (int i = 0; i < 4; i++) { Assert.AreEqual(columnMajor[i], array[i]); } }
public void ToArray1D() { Matrix22F m = new Matrix22F(1, 2, 3, 4); float[] array = m.ToArray1D(MatrixOrder.RowMajor); for (int i = 0; i < 4; i++) Assert.AreEqual(rowMajor[i], array[i]); array = m.ToArray1D(MatrixOrder.ColumnMajor); for (int i = 0; i < 4; i++) Assert.AreEqual(columnMajor[i], array[i]); }