Java Array Deep Copy deepCopy(double[][] in)

Here you can find the source of deepCopy(double[][] in)

Description

deep Copy

License

Apache License

Declaration

public static double[][] deepCopy(double[][] in) 

Method Source Code

//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;
    }
}

Related

  1. deepArrayCopy(double[][] original)
  2. deepArrayCopy(double[][] original)
  3. deepClone(double[][] ary)
  4. deepClone(int[][] source)
  5. deepCopy(byte[] org)
  6. deepCopy(final String s)
  7. deepCopy(int[] array)
  8. deepCopy(int[][] src, int[][] dest)
  9. deepCopy(Object objectArray)