Here you can find the source of minus(double[][] x, double[][] y, double[][] r)
public static void minus(double[][] x, double[][] y, double[][] r)
//package com.java2s; //License from project: Apache License public class Main { public static void minus(double[][] x, double[][] y, double[][] r) { for (int i = 0; i < x.length; i++) { for (int j = 0; j < x[i].length; j++) { r[i][j] = x[i][j] - y[i][j]; }/*from ww w .j a va 2 s.co m*/ } } }