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 018e4f0 commit e80b221Copy full SHA for e80b221
src/distances/sinus.jl
@@ -24,4 +24,6 @@ end
24
25
# Optimizations for scalar inputs (avoiding allocations)
26
pairwise(d::Sinus, x::AbstractVector{<:Real}) = pairwise(d, x, x)
27
-pairwise(d::Sinus, x::AbstractVector{<:Real}, y::AbstractVector{<:Real}) = abs2.(sinpi.(x .- y') ./ only(d.r))
+function pairwise(d::Sinus, x::AbstractVector{<:Real}, y::AbstractVector{<:Real})
28
+ return abs2.(sinpi.(x .- y') ./ only(d.r))
29
+end
0 commit comments