Java Matrix Max Value max(double[][] x)

Here you can find the source of max(double[][] x)

Description

max

License

Open Source License

Declaration

private static double max(double[][] x) 

Method Source Code

//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;
    }
}

Related

  1. max(float a[][][])
  2. max(float[][] a)
  3. max(float[][] originalValues, float[][] newValues, int[] indexArray, float value)
  4. max_abs(double[][] matrix)