pSum: Compute all pairwise sums

Description Usage Arguments Value Author(s)

View source: R/copa.R

Description

A function that computes all pairwise sums for a vector of numbers. This is an internal function and is not intended for use by end-users.

Usage

1
pSum(a)

Arguments

a

A numeric vector

Value

out

A square matrix (of dimension length(a) X length(a)) containing all pairwise sums.

Author(s)

James W. MacDonald


copa documentation built on Nov. 8, 2020, 7:47 p.m.