public static double[] sqrtVector(double[] inVector){
  int m=inVector.length;
  double[] outVector=new double[m];
  for (int i=0; i < m; ++i) {
    outVector[i]=Math.sqrt(Math.abs(inVector[i]));
  }
  return (outVector);
}

public static double [ ] sqrtVector ( double [ ] inVector ) { int m = inVector . length ; double [ ] outVector = new double [ m ] ; for ( int i = 0 ; i < m ; ++ i ) { outVector [ i ] = Math . sqrt ( Math . abs ( inVector [ i ] ) ) ; } return ( outVector ) ; }
square roots every element of the vector .
