code: public static double elementMax( DMatrixD1 a ) {
          final int size = a.getNumElements();
  
          double max = a.get(0);
          for( int i = 1; i < size; i++ ) {
              double val = a.get(i);
              if( val >= max ) {
                  max = val;
              }
          }
  
          return max;
      }
docs: <p>
  Returns the value of the element in the matrix that has the largest value.<br>
  <br>
  Max{ a<sub>ij</sub> } for all i and j<br>
  </p>
  
  @param a A matrix. Not modified.
  @return The max element value of the matrix.