Here you can find the source of sumMetrix(double[][] total, double[][] element)
public static void sumMetrix(double[][] total, double[][] element)
//package com.java2s; //License from project: Open Source License public class Main { public static void sumMetrix(double[][] total, double[][] element) { for (int i = 0; i < element.length; i++) { for (int j = 0; j < element[0].length; j++) { total[i][j] = total[i][j] + element[i][j]; }/* w w w .j a v a 2 s.c o m*/ } } }