Here you can find the source of deepArrayCopy(double[][] original)
public static double[][] deepArrayCopy(double[][] original)
//package com.java2s; //License from project: Open Source License public class Main { public static double[][] deepArrayCopy(double[][] original) { double[][] copy = original.clone(); for (int i = 0; i < copy.length; i++) { copy[i] = copy[i].clone();//from w w w.java2s. com } return copy; } }