Java Array Deep Copy deepClone(double[][] ary)

Here you can find the source of deepClone(double[][] ary)

Description

deep Clone

License

Apache License

Declaration

public static double[][] deepClone(double[][] ary) 

Method Source Code

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

Related

  1. deep_copy(int M[][])
  2. deepArrayCopy(double[][] original)
  3. deepArrayCopy(double[][] original)
  4. deepArrayCopy(double[][] original)
  5. deepClone(int[][] source)
  6. deepCopy(byte[] org)
  7. deepCopy(double[][] in)
  8. deepCopy(final String s)