Here you can find the source of deepCopy(double[][] in)
public static double[][] deepCopy(double[][] in)
//package com.java2s; //License from project: Apache License public class Main { public static double[][] deepCopy(double[][] in) { double[][] out = new double[in.length][in[0].length]; for (int i = 0; i < in.length; i++) for (int j = 0; j < in[0].length; j++) { out[i][j] = in[i][j];/*from ww w. j a v a2 s . co m*/ } return out; } }