matrix-kron: Kronecker product

kronR Documentation

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.

Note

kron is a synonym to %x%.

References

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

Examples

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

fBasics documentation built on Nov. 3, 2023, 5:10 p.m.