Tuesday 23 September 2014

copy array to other array in C#

 //private double[][] CopyArrayBuiltIn(double[][] source, double[] arrStSubBasin)
        //{
        //    var len = source.Length;
        //    double[][] destination = new double[source.Length][];
        //    //  double[][] dest = new double[len][];

        //    for (var x = 0; x < len; x++)
        //    {
        //        var inner = source[x];
        //        var ilen = inner.Length;
        //        var newer = new double[ilen];
        //        Array.Copy(inner, newer, ilen);
        //        destination[x] = newer;
        //    }
        //    MatrixProduct(destination, arrStSubBasin);
        //    return destination;
        //}

No comments:

Post a Comment