Skip to content

Commit b9f35bf

Browse files
committed
Added LU decomposition algorthim
1 parent 238063e commit b9f35bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/thealgorithms/matrix/LUDecomposition.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public static void printMatrix(double[][] M) {
104104
System.out.print("[");
105105
for (int j = 0; j < row.length; j++) {
106106
System.out.printf("%7.3f", row[j]);
107-
if (j < row.length - 1) System.out.print(", ");
107+
if (j < row.length - 1) {
108+
System.out.print(", ");
109+
}
108110
}
109111
System.out.println("]");
110112
}

0 commit comments

Comments
 (0)