code: public static double[][] Abs(ComplexNumber[][] z) {
          double[][] values = new double[z.length][z[0].length];
          for (int i = 0; i < values.length; i++) {
              for (int j = 0; j < values[0].length; j++) {
                  values[i][j] = z[i][j].getMagnitude();
              }
          }
          return values;
      }
docs: Absolute value of complex number.
  
  @param z Complex numbers.
  @return Absolute number.