Skip to content

Commit

Permalink
Add GPU support for to_boundary function
Browse files Browse the repository at this point in the history
amontoison committed Sep 29, 2022
1 parent 7dcc254 commit 226c507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/krylov_utils.jl
Original file line number Diff line number Diff line change
@@ -344,7 +344,7 @@ If `flip` is set to `true`, `σ1` and `σ2` are computed such that
‖x - σi d‖ = radius, i = 1, 2.
"""
function to_boundary(n :: Int, x :: Vector{T}, d :: Vector{T}, radius :: T; flip :: Bool=false, xNorm2 :: T=zero(T), dNorm2 :: T=zero(T)) where T <: FloatOrComplex
function to_boundary(n :: Int, x :: AbstractVector{T}, d :: AbstractVector{T}, radius :: T; flip :: Bool=false, xNorm2 :: T=zero(T), dNorm2 :: T=zero(T)) where T <: FloatOrComplex
radius > 0 || error("radius must be positive")

# ‖d‖² σ² + (xᴴd + dᴴx) σ + (‖x‖² - Δ²).

0 comments on commit 226c507

Please sign in to comment.