Here you can find the source of subtract(float a[][][], float b[][][])
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
public static float[][][] subtract(float a[][][], float b[][][])
//package com.java2s; //License from project: CeCILL license public class Main { /**//from ww w . j ava 2 s .c o m * Create matrix c = a - b * * @param a * @param b * @return c = a-b */ public static float[][][] subtract(float a[][][], float b[][][]) { int l = a.length; int m = a[0].length; int n = a[0][0].length; float[][][] c = new float[l][m][n]; for (int i = 0; i < l; i++) for (int j = 0; j < m; j++) for (int k = 0; k < n; k++) c[i][j][k] = a[i][j][k] - b[i][j][k]; return c; } }