From 226c50745dc2aed77ae54bd093ab65f01983fcbb Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 29 Sep 2022 12:07:02 -0400 Subject: [PATCH] Add GPU support for to_boundary function --- src/krylov_utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/krylov_utils.jl b/src/krylov_utils.jl index 575179eec..b0a180dd3 100644 --- a/src/krylov_utils.jl +++ b/src/krylov_utils.jl @@ -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‖² - Δ²).