Skip to content

Commit 2d5b2b4

Browse files
Merge pull request #5 from matteoacrossi/Abstract
Accept AbstractVecOrMat
2 parents 886f8e8 + 72cbc74 commit 2d5b2b4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ExpmV"
22
uuid = "e7fedf88-7a0b-11e8-3562-f39b41888c88"
33
authors = ["Matteo Rossi <teo.red90@gmail.com>"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/expmv_fun.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ a parameter (or a `StepRangeLen` object representing a range of values).
2121
* `full_term = false`: set to `true` to evaluate the full Taylor expansion instead
2222
of truncating when reaching the required precision
2323
"""
24-
function expmv(t::Number, A, b::VecOrMat; M = nothing,
24+
function expmv(t::Number, A, b::AbstractVecOrMat; M = nothing,
2525
precision = "double", shift = false, full_term = false)
2626
n = size(A, 1)
2727

src/expmv_tspan.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using LinearAlgebra
22
using SparseArrays
33

4-
function expmv(t::StepRangeLen, A, b::Vector;
4+
function expmv(t::StepRangeLen, A, b::AbstractVecOrMat;
55
M = nothing, precision = "double", shift = false)
66

77
t0 = Float64(t.ref)

0 commit comments

Comments
 (0)