Skip to content

Commit

Permalink
Merge pull request #5 from matteoacrossi/Abstract
Browse files Browse the repository at this point in the history
Accept AbstractVecOrMat
  • Loading branch information
matteoacrossi authored Jan 20, 2019
2 parents 886f8e8 + 72cbc74 commit 2d5b2b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ExpmV"
uuid = "e7fedf88-7a0b-11e8-3562-f39b41888c88"
authors = ["Matteo Rossi <[email protected]>"]
version = "0.1.2"
version = "0.1.3"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
2 changes: 1 addition & 1 deletion src/expmv_fun.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/expmv_tspan.jl
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 2d5b2b4

Please sign in to comment.