Skip to content

Commit

Permalink
Update pairwise.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
PGS62 committed Mar 30, 2024
1 parent 1a2fc48 commit 64ad9d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pairwise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function _pairwise!(::Val{:none}, f, dest::AbstractMatrix{V}, x, y,
return dest
end

#Input validation for both pairwise and pairwise!
function check_vectors(x, y, skipmissing::Symbol, symmetric::Bool)

if symmetric && x !== y
Expand Down Expand Up @@ -325,8 +326,9 @@ promoted_nmtype(x) = mapreduce(nonmissingtype ∘ eltype, promote_type, x, init=
"""
handle_listwise(x, y)
Remove missings in a listwise manner. Assumes `x` and `y` are vectors of vectors which have
been validated via `check_vectors`.
Remove missings in a listwise manner. Assumes `x` and `y` are vectors of iterables which
have been validated via `check_vectors`.
## Example
```julia-repl
Expand Down

0 comments on commit 64ad9d7

Please sign in to comment.