Learn R Programming

fBasics (version 4041.97)

kron: Kronecker product

Description

Computes the Kronecker product of two matrices.

Usage

kron(x, y)

Arguments

x, y

numeric matrices.

Details

The Kronecker product can be computed using the operator %x% or alternatively using the function kron for SPlus compatibility.

References

Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.

Examples

Run this code
## Create Pascal Matrix:
P = pascal(3)
P
   
## Return the Kronecker Product                     
kron(P, diag(3))
P %x% diag(3)                        

Run the code above in your browser using DataLab