Skip to content

Commit

Permalink
5-arg mul! after v 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
daviehh committed Jan 29, 2020
1 parent ed2ed76 commit 460c14c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/linalg/LinAlgBenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ typename(::Type{T}) where {T} = string(isa(T,DataType) ? T.name : Base.unwrap_un
typename(::Type{M}) where {M<:Matrix} = "Matrix"
typename(::Type{V}) where {V<:Vector} = "Vector"

const UPLO = :U
const UPLO = :U

linalgmat(::Type{Matrix}, s) = randmat(s)
linalgmat(::Type{Diagonal}, s) = Diagonal(randvec(s))
Expand Down Expand Up @@ -122,7 +122,9 @@ for s in (2, 3)
C = randmat(s)
(α, β) = rand(2)
g["3-arg mul!", s] = @benchmarkable LinearAlgebra.mul!($C, $A, $B)
g["5-arg mul!", s] = @benchmarkable LinearAlgebra.mul!($C, $A, $B, $α, $β)
if VERSION >= v"1.3"
g["5-arg mul!", s] = @benchmarkable LinearAlgebra.mul!($C, $A, $B, $α, $β)
end
end


Expand Down

0 comments on commit 460c14c

Please sign in to comment.