Here you can find the source of printMatrix(double[][] matrix)
Parameter | Description |
---|---|
matrix | the matrix |
public static void printMatrix(double[][] matrix)
//package com.java2s; //License from project: Apache License public class Main { /**// www. j ava 2 s .co m * Prints the matrix to STDOUT * @param matrix the matrix */ public static void printMatrix(double[][] matrix) { for (int i = 0; i < matrix.length; i++) { for (int j = 0; j < matrix[i].length; j++) { System.out.printf("%5.2f\t", matrix[i][j]); } System.out.println(); } } }