We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c1d5fb commit 70ce753Copy full SHA for 70ce753
src/generic.jl
@@ -934,7 +934,7 @@ end
934
function lpdist(x::T, y::T, p::Real) where {T <: AbstractVector}
935
length(x) == length(y) || throw(DimensionMismatch("x and y have different lenghts"))
936
p < 0 && throw(DomainError("p must be non-negative"))
937
- p < 1 || @warn("Technically not a distance metric for 0 < p < 1")
+ p < 1 && @warn("Technically not a distance metric for 0 < p < 1")
938
939
# handle inf norm separatey
940
if p == Inf
0 commit comments