Skip to content

Conversation

@Keykyrios
Copy link
Contributor

Description

This pull request adds an implementation of the Chebyshev Iteration algorithm.

This is an iterative numerical method used to solve systems of linear equations of the form $Ax = b$. It is particularly effective when the matrix $A$ is symmetric positive definite and provides faster convergence than methods like Jacobi or Gauss-Seidel by using Chebyshev polynomials.

This contribution includes:

  • src/main/java/com/thealgorithms/maths/ChebyshevIteration.java: The core algorithm implementation with helper methods for vector/matrix operations.
  • src/test/java/com/thealgorithms/maths/ChebyshevIterationTest.java: A corresponding set of JUnit 5 tests to validate the implementation, including simple systems, edge cases (e.g., already converged), and invalid input handling.
  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2025

Codecov Report

❌ Patch coverage is 91.42857% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.33%. Comparing base (3c70a54) to head (e36dfd7).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...va/com/thealgorithms/maths/ChebyshevIteration.java 91.42% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6963      +/-   ##
============================================
+ Coverage     78.28%   78.33%   +0.04%     
- Complexity     6581     6602      +21     
============================================
  Files           744      745       +1     
  Lines         21910    21980      +70     
  Branches       4293     4310      +17     
============================================
+ Hits          17153    17217      +64     
- Misses         4074     4077       +3     
- Partials        683      686       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Keykyrios Keykyrios marked this pull request as ready for review October 28, 2025 15:35
@Keykyrios Keykyrios requested a review from alxkm as a code owner October 28, 2025 15:35
Copy link
Member

@alxkm alxkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you for the contribution.

@alxkm alxkm merged commit 68746f8 into TheAlgorithms:master Oct 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants