v_mapAbsToSelf.mapToSelf(new Abs());
double[] result_mapAbsToSelf = {1d,0d,1d};
assertClose("compare vectors" ,result_mapAbsToSelf,v_mapAbsToSelf.toArray(),normTolerance);
//octave = sqrt(v1)
RealVector v_mapSqrt = v1.map(new Sqrt());
double[] result_mapSqrt = {1d,1.414213562373095e+00d,1.732050807568877e+00d};
assertClose("compare vectors" ,result_mapSqrt,v_mapSqrt.toArray(),normTolerance);
//octave = sqrt(v1)
RealVector v_mapSqrtToSelf = v1.copy();
v_mapSqrtToSelf.mapToSelf(new Sqrt());
double[] result_mapSqrtToSelf = {1d,1.414213562373095e+00d,1.732050807568877e+00d};
assertClose("compare vectors" ,result_mapSqrtToSelf,v_mapSqrtToSelf.toArray(),normTolerance);
double[] cbrt_a = {-2.0d, 0.0d, 2.0d};
OpenMapRealVector cbrt_v = new OpenMapRealVector(cbrt_a);