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