Here you can find the source of min(float a[][][])
Parameter | Description |
---|---|
a | a parameter |
public static float min(float a[][][])
//package com.java2s; //License from project: CeCILL license public class Main { /**/* ww w. j a va 2 s .c o m*/ * Find minimum value in a 3D matrix * * @param a * @return the minimum value in the matrix */ public static float min(float a[][][]) { float min = a[0][0][0]; 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++) min = (a[i][j][k] < min ? a[i][j][k] : min); return min; } }