Here you can find the source of deepCopyOf(double[][] src)
static public double[][] deepCopyOf(double[][] src)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { static public double[][] deepCopyOf(double[][] src) { if (src == null) return null; double[][] dst = new double[src.length][]; for (int i = 0; i < src.length; i++) if (src[i] != null) dst[i] = Arrays.copyOf(src[i], src[i].length); return dst; }/*from w ww . j a v a2 s .co m*/ }