Skip to content

Commit e3e696a

Browse files
authored
Add pairwise (#1)
1 parent 65bac16 commit e3e696a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/StatsAPI.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
module StatsAPI
22

3+
# pairwise(f, x[, y])
4+
#
5+
# Return a matrix holding the result of applying `f` to all possible pairs
6+
# of entries in iterators `x` and `y`, and return it.
7+
#
8+
# This generic function is owned by StatsBase.jl, which is the sole provider
9+
# of the default definition.
10+
function pairwise end
11+
12+
# pairwise!(f, dest::AbstractMatrix, x[, y])
13+
#
14+
# Store in matrix `dest` the result of applying `f` to all possible pairs
15+
# of entries in iterators `x` and `y`, and return it.
16+
#
17+
# This generic function is owned by StatsBase.jl, which is the sole provider
18+
# of the default definition.
19+
function pairwise! end
20+
321
end # module

0 commit comments

Comments
 (0)