code: public static boolean isHermitian(ZMatrixRMaj Q , double tol ) {
          if( Q.numCols != Q.numRows )
              return false;
  
          Complex_F64 a = new Complex_F64();
          Complex_F64 b = new Complex_F64();
  
          for( int i = 0; i < Q.numCols; i++ ) {
              for( int j = i; j < Q.numCols; j++ ) {
                  Q.get(i,j,a);
                  Q.get(j,i,b);
  
                  if( Math.abs(a.real-b.real)>tol)
                      return false;
                  if( Math.abs(a.imaginary+b.imaginary)>tol)
                      return false;
              }
          }
  
          return true;
      }
docs: <p>Hermitian matrix is a square matrix with complex entries that are equal to its own conjugate transpose.</p>
  
  <p>a[i,j] = conj(a[j,i])</p>
  
  @param Q The matrix being tested. Not modified.
  @param tol Tolerance.
  @return True if it passes the test.