Skip to content

Commit 7466658

Browse files
author
mohamed82008
committed
Missed change for CGStateVariables generic array support
1 parent 8b3d634 commit 7466658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function cg!(x, A, b;
184184
tol = sqrt(eps(real(eltype(b)))),
185185
maxiter::Int = size(A, 2),
186186
log::Bool = false,
187-
statevars::CGStateVariables = CGStateVariables{eltype(x)}(zeros(x), similar(x), similar(x)),
187+
statevars::CGStateVariables = CGStateVariables{eltype(x), typeof(x)}(zeros(x), similar(x), similar(x)),
188188
verbose::Bool = false,
189189
Pl = Identity(),
190190
kwargs...

0 commit comments

Comments
 (0)