Here you can find the source of printDoubleMatrix(double[][] matrix)
Parameter | Description |
---|---|
matrix | a parameter |
public static void printDoubleMatrix(double[][] matrix)
//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("]"); } } }