code: public static String format(double[][] m, NumberFormat nf) {
      return formatTo(new StringBuilder().append("[\n"), m, " [", "]\n", ", ", nf).append("]").toString();
    }
docs: returns String-representation of Matrix.
  
  @param nf NumberFormat to specify output precision
  @return String representation of this Matrix in precision as specified by
  given NumberFormat