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 f31f160 commit 912cc49Copy full SHA for 912cc49
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