Skip to content

Commit

Permalink
norm2 for array instead of vector
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Sep 24, 2020
1 parent 6df808f commit 3bd31a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MonteCarloMeasurements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ include("optimize.jl")
include("sleefpirates.jl")

# This is defined here so that @bymap is loaded
LinearAlgebra.norm2(p::AbstractVector{<:AbstractParticles}) = bymap(LinearAlgebra.norm2,p)
LinearAlgebra.norm2(p::AbstractArray{<:AbstractParticles}) = bymap(LinearAlgebra.norm2,p)
Base.:\(x::AbstractVecOrMat{<:AbstractParticles}, y::AbstractVecOrMat{<:AbstractParticles}) = bymap(\, x, y)

function __init__()
Expand Down

0 comments on commit 3bd31a3

Please sign in to comment.