From cd1a2913c5704900dd146e9c17fa4240c90487c2 Mon Sep 17 00:00:00 2001 From: schillic Date: Sat, 22 Apr 2023 22:23:34 +0200 Subject: [PATCH] allow to pass kwargs to _expmv --- src/Utils/matrix_exponential.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Utils/matrix_exponential.jl b/src/Utils/matrix_exponential.jl index 5d7c22bb0c..3faaed6eb1 100644 --- a/src/Utils/matrix_exponential.jl +++ b/src/Utils/matrix_exponential.jl @@ -30,8 +30,8 @@ end end end # quote / load_exponentialutilities -function _expmv(::Val{:ExponentialUtilities}, t, A, b) - return ExponentialUtilities.expv(t, A, b) +function _expmv(::Val{:ExponentialUtilities}, t, A, b; kwargs...) + return ExponentialUtilities.expv(t, A, b; kwargs...) end # ======= @@ -47,11 +47,11 @@ end end end # quote / load_expokit -function _expmv(::Val{:Expokit}, t, A, b::Vector) - return Expokit.expmv(t, A, b) +function _expmv(::Val{:Expokit}, t, A, b::Vector; kwargs...) + return Expokit.expmv(t, A, b; kwargs...) end -function _expmv(backend::Val{:Expokit}, t, A, b) +function _expmv(backend::Val{:Expokit}, t, A, b; kwargs...) b = Vector(b) # Expokit requires a dense vector - return _expmv(backend, t, A, b) + return _expmv(backend, t, A, b; kwargs...) end