Ejemplo n.º 1
0
        public void ToArray1D()
        {
            Matrix22D m = new Matrix22D(1, 2, 3, 4);

            double[] 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]);
            }
        }
Ejemplo n.º 2
0
 public void ToArray1D()
 {
     Matrix22D m = new Matrix22D(1, 2, 3, 4);
       double[] 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]);
 }