Here you can find the source of deepClone(double[][] ary)
public static double[][] deepClone(double[][] ary)
//package com.java2s; //License from project: Apache License public class Main { public static double[][] deepClone(double[][] ary) { double[][] res = ary.clone(); for (int i = 0; i < res.length; ++i) res[i] = ary[i].clone();//from w w w . j a va 2 s . c o m return res; } }