Here you can find the source of sum(double[] output, double[] a, double[] b)
public static double[] sum(double[] output, double[] a, double[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] sum(double[] output, double[] a, double[] b) { for (int i = output.length - 1; i >= 0; i--) { output[i] = a[i] + b[i];/*from www .j a v a 2 s .co m*/ } return output; } }