Skip to content

Commit b283f9b

Browse files
authored
Update ChebyshevIteration.java
1 parent babefd6 commit b283f9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,19 @@ 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
113114
throw new IllegalArgumentException(
114115
"Matrix A must be square with dimensions n x n."
115116
);
116117
}
117118
if (x0.length != n) {
119+
// clang-format-lint-action wants this on one line
118120
throw new IllegalArgumentException(
119121
"Initial guess vector x0 must have length n."
120122
);
121123
}
122124
if (lambdaMin >= lambdaMax || lambdaMin <= 0) {
125+
// clang-format-lint-action wants this on one line
123126
throw new IllegalArgumentException(
124127
"Eigenvalues must satisfy 0 < lambdaMin < lambdaMax."
125128
);

0 commit comments

Comments
 (0)