powered by
Computes pairwise elementwise products.
pair.prod(X)
a numeric matrix.
Matrix containing the products.
The function computes all elementwise products 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.
pair.diff, pair.sum
pair.diff
pair.sum
# NOT RUN { X <- matrix(1:10, ncol = 2, byrow = FALSE) pair.prod(X) # }
Run the code above in your browser using DataLab