File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ Then refactorization will occur when a new `A` is given:
55
55
56
56
``` julia
57
57
A2 = rand (n,n)
58
- linsolve = LinearSolve. set_A (linsolve ,A2)
58
+ linsolve = LinearSolve. set_A (sol2 . cache ,A2)
59
59
sol3 = solve (linsolve)
60
60
61
61
sol3. u
@@ -68,6 +68,10 @@ sol3.u
68
68
=#
69
69
```
70
70
71
+ The factorization occurs on the first solve, and it stores the factorization in
72
+ the cache. You can retrieve this cache via ` sol.cache ` , which is the same object
73
+ as the ` init ` but updated to know not to re-solve the factorization.
74
+
71
75
The advantage of course with using LinearSolve.jl in this form is that it is
72
76
efficient while being agnostic to the linear solver. One can easily swap in
73
77
iterative solvers, sparse solvers, etc. and it will do all of the tricks like
You can’t perform that action at this time.
0 commit comments