Java Double Number Print printDoubleMatrix(double[][] matrix)

Here you can find the source of printDoubleMatrix(double[][] matrix)

Description

Print a double matrix.

License

Open Source License

Parameter

Parameter Description
matrix a parameter

Declaration

public static void printDoubleMatrix(double[][] matrix) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from   w ww  .j av a2s .co m*/
     * Print a double matrix.
     * @param matrix
     */
    public static void printDoubleMatrix(double[][] matrix) {
        for (double[] line : matrix) {
            System.out.print("[");
            for (double el : line) {
                System.out.print(el + " ");
            }
            System.out.println("]");
        }
    }
}

Related

  1. printDouble(double[] salida)
  2. printDoubleArray(double[] array)
  3. printDoubleArray(double[] array)
  4. printDoubleArray(double[] d)
  5. printDoubleIndentw(Object object)
  6. printDoubleVector(double[] pVec)