Skip to content

Commit 912cc49

Browse files
Improve formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f31f160 commit 912cc49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/distances/sinus.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ end
2424

2525
# Optimizations for scalar inputs (avoiding allocations)
2626
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))
27+
function pairwise(d::Sinus, x::AbstractVector{<:Real}, y::AbstractVector{<:Real})
28+
return abs2.(sinpi.(x .- y') ./ only(d.r))
29+
end

0 commit comments

Comments
 (0)