Skip to content

Commit af64607

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

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

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

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,8 @@ private ChebyshevIteration() {
4343
* match,
4444
* or if max/min eigenvalues are invalid.
4545
*/
46-
public static double[] solve(
47-
double[][] A,
48-
double[] b,
49-
double[] x0,
50-
double lambdaMin,
51-
double lambdaMax,
52-
int maxIterations,
53-
double tolerance
54-
) {
46+
// FIX: Method signature flattened to one line
47+
public static double[] solve(double[][] A, double[] b, double[] x0, double lambdaMin, double lambdaMax, int maxIterations, double tolerance) {
5548
validateInputs(A, b, x0, lambdaMin, lambdaMax);
5649

5750
int n = b.length;
@@ -98,13 +91,7 @@ public static double[] solve(
9891
}
9992

10093
// --- Helper Methods for Linear Algebra ---
101-
private static void validateInputs(
102-
double[][] A,
103-
double[] b,
104-
double[] x0,
105-
double lambdaMin,
106-
double lambdaMax
107-
) {
94+
private static void validateInputs(double[][] A, double[] b, double[] x0, double lambdaMin, double lambdaMax) {
10895
int n = b.length;
10996
if (n == 0) {
11097
throw new IllegalArgumentException("Vectors cannot be empty.");

0 commit comments

Comments
 (0)