From 72cbc743a12ac652a267f070b024a485df8fae8f Mon Sep 17 00:00:00 2001 From: Matteo Rossi Date: Sun, 20 Jan 2019 23:26:17 +0200 Subject: [PATCH] Accept AbstractVecOrMat --- Project.toml | 2 +- src/expmv_fun.jl | 2 +- src/expmv_tspan.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index a5ec6e2..5a5d989 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ExpmV" uuid = "e7fedf88-7a0b-11e8-3562-f39b41888c88" authors = ["Matteo Rossi "] -version = "0.1.2" +version = "0.1.3" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/src/expmv_fun.jl b/src/expmv_fun.jl index 2114b49..6002833 100644 --- a/src/expmv_fun.jl +++ b/src/expmv_fun.jl @@ -21,7 +21,7 @@ a parameter (or a `StepRangeLen` object representing a range of values). * `full_term = false`: set to `true` to evaluate the full Taylor expansion instead of truncating when reaching the required precision """ -function expmv(t::Number, A, b::VecOrMat; M = nothing, +function expmv(t::Number, A, b::AbstractVecOrMat; M = nothing, precision = "double", shift = false, full_term = false) n = size(A, 1) diff --git a/src/expmv_tspan.jl b/src/expmv_tspan.jl index 52b92a3..49c7052 100644 --- a/src/expmv_tspan.jl +++ b/src/expmv_tspan.jl @@ -1,7 +1,7 @@ using LinearAlgebra using SparseArrays -function expmv(t::StepRangeLen, A, b::Vector; +function expmv(t::StepRangeLen, A, b::AbstractVecOrMat; M = nothing, precision = "double", shift = false) t0 = Float64(t.ref)