Skip to content

Commit dd5fa10

Browse files
theogfwilltebbutt
andauthored
Update src/distances/pairwise.jl
Co-authored-by: willtebbutt <[email protected]>
1 parent 534e490 commit dd5fa10

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/distances/pairwise.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Add our own pairwise function to be able to apply it on vectors
22

3-
function pairwise(d::PreMetric, X::AbstractVector, Y::AbstractVector)
4-
broadcast(d, X, Y')
5-
end
3+
pairwise(d::PreMetric, X::AbstractVector, Y::AbstractVector) = broadcast(d, X, Y')
64

75
pairwise(d::PreMetric, X::AbstractVector) = pairwise(d, X, X)
86

0 commit comments

Comments
 (0)