예제 #1
0
 public void TestPlaBottomUp()
 {
     float[,] tss =
     {
         { 0.0F, 1.0F,  2.0F, 3.0F, 4.0F, 5.0F, 6.0F, 7.0F, 8.0F, 9.0F },
         { 0.0F, 0.1F, -0.1F, 5.0F, 6.0F, 7.0F, 8.1F, 9.0F, 9.0F, 9.0F }
     };
     using (KhivaArray arr = KhivaArray.Create(tss), pla = Dimensionality.PlaBottomUp(arr, 1))
     {
         float[,] expected =
         {
             { 0,    1,     2, 3, 4, 7, 8, 9 },
             { 0, 0.1F, -0.1F, 5, 6, 9, 9, 9 }
         };
         var plaArr = pla.GetData2D <float>();
         Assert.AreEqual(expected, plaArr);
     }
 }