You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now if you apply Jacobi iteration multiple times with the same matrix for just a few iterations, it makes sense to initialize the iterable only once and reuse it afterwards:
30
30
31
-
```julia
32
-
A =sprand(10_000, 10_000, 10/10_000) +20I
33
-
b1 =rand(10_000)
34
-
b2 =rand(10_000)
35
-
x =rand(10_000)
36
-
37
-
my_iterable = IterativeSolvers.jacobi_iterable(x, A, b1, maxiter =4)
31
+
```jldoctest
32
+
julia> using LinearAlgebra, SparseArrays, IterativeSolvers
0 commit comments