code: public static double elementMaxMagnitude2( ZMatrixD1 a ) {
          final int size = a.getDataLength();
  
          double max = 0;
          for( int i = 0; i < size; ) {
              double real = a.data[i++];
              double imaginary = a.data[i++];
  
              double m = real*real + imaginary*imaginary;
  
              if( m > max ) {
                  max = m;
              }
          }
  
          return max;
      }
docs: <p>
  Returns the magnitude squared of the complex element with the largest magnitude<br>
  <br>
  Max{ |a<sub>ij</sub>|^2 } for all i and j<br>
  </p>
  
  @param a A matrix. Not modified.
  @return The max magnitude squared