pSum {copa}R Documentation

Compute all pairwise sums

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

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


[Package copa version 1.0.1 Index]