Here you can find the source of max(double[][] x)
private static double max(double[][] x)
//package com.java2s; //License from project: Open Source License public class Main { private static double max(double[][] x) { double v = 0; for (int i = 0; i < x.length; i++) { for (int j = 0; j < x[0].length; j++) { if (x[i][j] > v) { v = x[i][j];/* w w w.j a va2 s . c o m*/ } } } return v; } }