From 87dd3f37d5af9bbd67d0f73e78eee71452b25d28 Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 17 Oct 2024 16:08:08 -0500 Subject: [PATCH] Fix kcopy! --- src/krylov_utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/krylov_utils.jl b/src/krylov_utils.jl index 19f119d47..14c0e430c 100644 --- a/src/krylov_utils.jl +++ b/src/krylov_utils.jl @@ -329,8 +329,8 @@ kaxpby!(n :: Integer, s :: T, x :: AbstractVector{Complex{T}}, t :: Complex{T}, kaxpby!(n :: Integer, s :: Complex{T}, x :: AbstractVector{Complex{T}}, t :: T, y :: AbstractVector{Complex{T}}) where T <: AbstractFloat = kaxpby!(n, s, x, Complex{T}(t), y) kaxpby!(n :: Integer, s :: T, x :: AbstractVector{Complex{T}}, t :: T, y :: AbstractVector{Complex{T}}) where T <: AbstractFloat = kaxpby!(n, Complex{T}(s), x, Complex{T}(t), y) -kcopy!(n :: Integer, x :: Vector{T}, y :: Vector{T}) where T <: BLAS.BlasFloat = BLAS.blascopy!(n, x, 1, y, 1) -kcopy!(n :: Integer, x :: AbstractVector{T}, y :: AbstractVector{T}) where T <: FloatOrComplex = copyto!(y, x) +kcopy!(n :: Integer, y :: Vector{T}, x :: Vector{T}) where T <: BLAS.BlasFloat = BLAS.blascopy!(n, x, 1, y, 1) +kcopy!(n :: Integer, y :: AbstractVector{T}, x :: AbstractVector{T}) where T <: FloatOrComplex = copyto!(y, x) kfill!(x :: AbstractArray{T}, val :: T) where T <: FloatOrComplex = fill!(x, val)