Learn R Programming

fBasics (version 4021.93)

kron: Kronecker product

Description

Returns the Kronecker product.

Usage

kron(x, y)

Arguments

x, y

two 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