-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update iterative_wrappers.jl #180
Conversation
Codecov Report
@@ Coverage Diff @@
## main #180 +/- ##
==========================================
- Coverage 65.03% 64.93% -0.10%
==========================================
Files 9 9
Lines 652 656 +4
==========================================
+ Hits 424 426 +2
- Misses 228 230 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
format |
iterative solvers residual is in |
Krylov.jl doesn't return residuals so im having it return |
@ChrisRackauckas this is done julia> using LinearSolve; A=rand(4,4); b=rand(4); sol=solve(LinearProblem(A,b),KrylovJL_GMRES()); sol.resid
3.897156366804788e-16
julia> using LinearSolve; A=rand(4,4); b=rand(4); sol=solve(LinearProblem(A,b),KrylovJL_CG()); sol.resid
4.187153282902027
julia> using LinearSolve; A=rand(4,4); b=rand(4); sol=solve(LinearProblem(A,b),IterativeSolversJL_CG()); sol.resid
22.84186078251024
julia> using LinearSolve; A=rand(4,4); b=rand(4); sol=solve(LinearProblem(A,b),IterativeSolversJL_GMRES()); sol.resid
8.070850399734874e-18 |
Looks like that |
^yes haha i was just making sure sol.resid is filled out. |
heres an SPD example on [vp@MBP LinearSolve]:git fetch
[vp@MBP LinearSolve]:git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
[vp@MBP LinearSolve]:jl
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.8.0 (2022-08-17)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using LinearSolve, LinearAlgebra; A=rand(4,4) + 100*I; b=rand(4); sol=solve(LinearProblem(A,b),IterativeSolversJL_GMRES()); sol.resid
5.186092731891276e-16 |
fix #140