public static double[] array_clone(double[] a) {
        if(a == null) {
            return a;
        }
        return Arrays.copyOf(a, a.length);
    }
public static double [ ] array_clone ( double [ ] a ) { if ( a == null ) { return a ; } return Arrays . copyOf ( a , a . length ) ; }
Copies the elements of double array.

@param a
@return