• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLinearAlgebra / IterativeSolvers.jl / 34848212235
98%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2026 01:19PM UTC
Jobs 6
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Sep 2026 01:16PM UTC coverage: 97.97% (+0.001%) from 97.969%
34848212235

push

github

web-flow
Fix the Chebyshev iteration recurrence (#376)

After #367 the iteration converges, but it still does not produce the
Chebyshev residual polynomial r_k = T_k((μI - A)/ρ) r_0 / T_k(μ/ρ):

- the iteration counter starts at 0, so the `iteration == 1` branch ran
  on the second step instead of the first, resetting the direction and
  using α = 2/μ there;
- `α = 1/(μ - β)` mixed a dimensionless β with an eigenvalue; the
  Templates form is α = 1/(μ - β/α_prev);
- the β used on the second step must be half the generic value, since the
  three-term recurrence starts from T_{-1} = T_1 rather than T_0.

Rewrite `iterate` in the coupled two-term form of Sleijpen's lecture
notes (Exercise 5.11), tracking ζ_k = T_k(μ/ρ) / T_{k-1}(μ/ρ) with
ζ_{k+1} = 2μ/ρ - 1/ζ_k, β_k = 1/ζ_k² and α_k = 2/(ρ ζ_{k+1}).

On a diagonal SPD matrix with spectrum in [1, 100] the residual norm after
60 iterations is now 1.2e-4 (the exact Chebyshev value), where the
previous code gave 2.2e-1 and, before #367, diverged to 4e10. The
existing tests did not catch this because their matrix has condition
number below 3.

Add a test that checks the residual history against the exact Chebyshev
polynomial evaluated per eigenvalue, with and without a diagonal left
preconditioner, for real and complex element types. Also fix the
`maxiter` docstring, which mentioned GMRES.

Fixes #375.

6 of 6 new or added lines in 1 file covered. (100.0%)

2027 of 2069 relevant lines covered (97.97%)

7446.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-pre-ubuntu-latest-x64 - 34848212235.1 14 Sep 2026 01:20PM UTC 19
97.11
GitHub Action Run
2 run-lts-ubuntu-latest-x64 - 34848212235.2 14 Sep 2026 01:22PM UTC 19
95.09
GitHub Action Run
3 run-1-ubuntu-latest-x64 - 34848212235.3 14 Sep 2026 01:22PM UTC 19
97.11
GitHub Action Run
4 run-1-windows-latest-x64 - 34848212235.4 14 Sep 2026 01:22PM UTC 19
97.11
GitHub Action Run
5 run-lts-windows-latest-x64 - 34848212235.5 14 Sep 2026 01:24PM UTC 19
95.09
GitHub Action Run
6 run-1-macOS-latest-aarch64 - 34848212235.6 14 Sep 2026 01:19PM UTC 19
97.11
GitHub Action Run
Source Files on build 34848212235
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 65fa3e42 on github
  • Prev Build on master (#34845799752)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc