pair.sum: Pairwise Sums

pair.sumR Documentation

Pairwise Sums

Description

Computes pairwise sums.

Usage

pair.sum(X)

Arguments

X

a numeric matrix.

Details

The function computes all sums of row i and row j with i < j. The function is a wrapper to a C function to do the computation quickly and does no checks concerning the input.

Value

Matrix containing the sums.

Author(s)

Seija Sirkia

See Also

pair.diff, pair.prod

Examples

X <- matrix(1:10, ncol = 2, byrow = FALSE)
pair.sum(X)

ICSNP documentation built on Sept. 18, 2023, 5:16 p.m.