Here you can find the source of subtract(double[][] dest, double[][] a, double[][] b)
public static void subtract(double[][] dest, double[][] a, double[][] b)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { public static void subtract(double[][] dest, double[][] a, double[][] b) { for (int i = 0; i < dest.length; i++) { for (int j = 0; j < dest[i].length; j++) { dest[i][j] = a[i][j] - b[i][j]; }//from ww w. j a v a2 s . c o m } } }