コード例 #1
0
 public void TestPip()
 {
     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), pip = Dimensionality.Pip(arr, 6))
     {
         float[,] expected =
         {
             { 0.0F,  2.0F, 3.0F, 6.0F, 7.0F, 9.0F },
             { 0.0F, -0.1F, 5.0F, 8.1F, 9.0F, 9.0F }
         };
         var pipArr = pip.GetData2D <float>();
         Assert.AreEqual(expected, pipArr);
     }
 }