Skip to content

Commit

Permalink
allow to pass kwargs to _expmv
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Apr 22, 2023
1 parent 679ee52 commit cd1a291
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Utils/matrix_exponential.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

# =======
Expand All @@ -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

0 comments on commit cd1a291

Please sign in to comment.