pair.prod | R Documentation |
Computes pairwise elementwise products.
pair.prod(X)
X |
a numeric matrix. |
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.
Matrix containing the products.
Klaus Nordhausen
pair.diff
, pair.sum
X <- matrix(1:10, ncol = 2, byrow = FALSE)
pair.prod(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.