pair.sum {ICSNP} | R Documentation |
Computes pairwise sums.
pair.sum(X)
X |
a numeric matrix. |
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.
Matrix containing the sums.
Seija Sirkiä, seija.sirkia@iki.fi
X <- matrix(1:10, ncol = 2, byrow = FALSE) pair.sum(X)