Skip to content

Commit e148ff1

Browse files
committed
resolve ambiguity Diagonal
1 parent 241a7de commit e148ff1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GenericLinearAlgebra = "<0.3"
2424
MacroTools = "<0.6"
2525
RecipesBase = "<0.8, 0.8, 1.0"
2626
Requires = "<0.6, 1.0"
27-
SLEEFPirates = "0.4, 0.5"
27+
SLEEFPirates = "0.4, 0.5, 0.6"
2828
StaticArrays = "<0.12, 0.12, 1.0"
2929
StatsBase = "0.29, 0.30, 0.32, 0.33"
3030
julia = "1.0"

src/MonteCarloMeasurements.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ include("nominal.jl")
144144
# This is defined here so that @bymap is loaded
145145
LinearAlgebra.norm2(p::AbstractArray{<:AbstractParticles}) = bymap(LinearAlgebra.norm2,p)
146146
Base.:\(x::AbstractVecOrMat{<:AbstractParticles}, y::AbstractVecOrMat{<:AbstractParticles}) = bymap(\, x, y)
147+
Base.:\(x::Diagonal{<:AbstractParticles}, y::Vector{<:AbstractParticles}) = bymap(\, x, y) # required for ambiguity
147148

148149
function __init__()
149150
@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" include("forwarddiff.jl")

0 commit comments

Comments
 (0)