123124125126127128129130131132133
ArraySubVector v=ArraySubVector.wrap(data); assertEquals(10,v.get(10),0.0); assertTrue(v.isView()); AVector v2=v.subVector(5, 90); assertEquals(90,v2.length()); assertEquals(15,v2.get(10),0.0); assertTrue(v2.isView()); AVector v3=v2.subVector(5,80);