public void GetIndex()
 {
   DoubleVector a = new DoubleVector(new double[4]{1,2,3,4});
   DoubleVector b = new DoubleVector(new double[4]{3,2,1,0});
   DoubleVector c = new DoubleVector(new double[4]{0,-1,-2,-3});
   DoubleVector d = new DoubleVector(new double[4]{-3,-2,-1,0});
   
   Assert.AreEqual(a.GetAbsMaximumIndex(),3);
   Assert.AreEqual(b.GetAbsMaximumIndex(),0);
   Assert.AreEqual(c.GetAbsMaximumIndex(),3);
   Assert.AreEqual(d.GetAbsMaximumIndex(),0);
   
   Assert.AreEqual(a.GetAbsMaximum(),4);
   Assert.AreEqual(b.GetAbsMaximum(),3);
   Assert.AreEqual(c.GetAbsMaximum(),-3);
   Assert.AreEqual(d.GetAbsMaximum(),-3);
   
   Assert.AreEqual(a.GetAbsMinimumIndex(),0);
   Assert.AreEqual(b.GetAbsMinimumIndex(),3);
   Assert.AreEqual(c.GetAbsMinimumIndex(),0);
   Assert.AreEqual(d.GetAbsMinimumIndex(),3);
   
   Assert.AreEqual(a.GetAbsMinimum(),1);
   Assert.AreEqual(b.GetAbsMinimum(),0);
   Assert.AreEqual(c.GetAbsMinimum(),0);
   Assert.AreEqual(d.GetAbsMinimum(),0); 
 }