Skip to content

Commit 14d8936

Browse files
authored
Update ChebyshevIteration.java
1 parent 016ffbb commit 14d8936

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/main/java/com/thealgorithms/maths/ChebyshevIteration.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,13 @@ private static void validateInputs(
110110
throw new IllegalArgumentException("Vectors cannot be empty.");
111111
}
112112
if (A.length != n || A[0].length != n) {
113-
// clang-format-lint-action wants this on one line
114-
throw new IllegalArgumentException(
115-
"Matrix A must be square with dimensions n x n."
116-
);
113+
throw new IllegalArgumentException("Matrix A must be square with dimensions n x n.");
117114
}
118115
if (x0.length != n) {
119-
// clang-format-lint-action wants this on one line
120-
throw new IllegalArgumentException(
121-
"Initial guess vector x0 must have length n."
122-
);
116+
throw new IllegalArgumentException("Initial guess vector x0 must have length n.");
123117
}
124118
if (lambdaMin >= lambdaMax || lambdaMin <= 0) {
125-
// clang-format-lint-action wants this on one line
126-
throw new IllegalArgumentException(
127-
"Eigenvalues must satisfy 0 < lambdaMin < lambdaMax."
128-
);
119+
throw new IllegalArgumentException("Eigenvalues must satisfy 0 < lambdaMin < lambdaMax.");
129120
}
130121
}
131122

0 commit comments

Comments
 (0)