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
julia> A
2×2 Matrix{Float64}:2.01.51.53.0
julia> x
2-element Vector{Float64}:0.00.0
julia> y =similar(x)
2-element Vector{Float64}:5.0e-3240.0
julia> IterativeSolvers.cg!(y, A, x)
2-element Vector{Float64}:NaNNaN
It seems to happen when the allocated output vector contains garbage like above, but not if y = zeros(2) for example.
Edit: But maybe this is expected since x also doubles as the initial guess, not just a workspace vector. In particular, if x contains NaNs.
The text was updated successfully, but these errors were encountered:
It seems to happen when the allocated output vector contains garbage like above, but not if
y = zeros(2)
for example.Edit: But maybe this is expected since
x
also doubles as the initial guess, not just a workspace vector. In particular, ifx
contains NaNs.The text was updated successfully, but these errors were encountered: