Skip to content

Commit

Permalink
Improve formatting
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
simsurace and github-actions[bot] committed Jan 23, 2024
1 parent f31f160 commit 912cc49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/distances/sinus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ end

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

0 comments on commit 912cc49

Please sign in to comment.