Description Usage Arguments Value Examples
When computing densities and gradients, we occassionally need to compute the outer product between two vectors. Often, these vectors are stored in matrices and thus cannot be simply multiplied together. This function performs this multiplication for two matrices X and Y.
1 | vecOuterMult(X, Y)
|
X |
The first matrix. Each row contains a (row) vector x, and the final result is the outer product: t(x) times y. |
Y |
The second matrix. Each row contains a (row) vector y, and the final result is the outer product t(x) times y. |
A list containing the results of the various matrix products.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.