Skip to content

Commit c0c9add

Browse files
farhadrclassdpo
andauthored
Update src/shifted_operators.jl
Co-authored-by: Dominique <dominique.orban@gmail.com>
1 parent 4b45cbc commit c0c9add

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shifted_operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function shifted_prod!(y, data::ShiftedData, x, α, β)
1818
mul!(y, data.H, x, α, β)
1919

2020
# y = y + (α * σ) * x
21-
if !iszero(data.σ)
21+
if !(iszero(data.σ) && iszero(α))
2222
axpy!* data.σ, x, y)
2323
end
2424
return y

0 commit comments

Comments
 (0)