Skip to content

Commit

Permalink
Fix bug in CGNR with only AHA, b is now used to init x0, similar to F…
Browse files Browse the repository at this point in the history
…ISTA and co
  • Loading branch information
nHackel committed Aug 13, 2024
1 parent ef0c58f commit 6b17ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CGNR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end

initCGNR(x₀, A, b) = mul!(x₀, adjoint(A), b)
#initCGNR(x₀, prod::ProdOp{T, <:WeightingOp, matT}, b) where {T, matT} = mul!(x₀, adjoint(prod.B), b)
initCGNR(x₀, ::Nothing, b) = x₀ .= one(eltype(x₀))
initCGNR(x₀, ::Nothing, b) = x₀ .= b

solverconvergence(state::CGNRState) = (; :residual => norm(state.x₀))

Expand Down

0 comments on commit 6b17ba9

Please sign in to comment.