Here you can find the source of subtractTo(double a[][][], double b[][][])
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
static void subtractTo(double a[][][], double b[][][])
//package com.java2s; //License from project: CeCILL license public class Main { /**//from w w w . ja v a2s . co m * Subtract every entry of matrix b to the corresponding entry in matrix a. * * @param a * @param b */ static void subtractTo(double a[][][], double b[][][]) { for (int i = 0; i < a.length; i++) for (int j = 0; j < a[i].length; j++) for (int k = 0; k < a[i][j].length; k++) a[i][j][k] -= b[i][j][k]; } }