kron | R Documentation |
Computes the Kronecker product of two matrices.
kron(x, y)
x , y |
numeric matrices. |
The Kronecker product can be computed using the operator
%x%
or alternatively using the function kron
for SPlus compatibility.
kron
is a synonym to %x%
.
Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.
## Create Pascal Matrix:
P = pascal(3)
P
## Return the Kronecker Product
kron(P, diag(3))
P %x% diag(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.