Compute the Kronecker product of several matrices.
kprod(..., FUN = `*`)
... | A listing of matrices |
---|---|
FUN | A function to pass to |
A matrix that is the kronecker product of the specified matrices (from left to right).
If kronecker is the function that computes A x B, kprod computes A x B x C and so on; it's a wrapper of Reduce and kronecker.
#> [,1] [,2] [,3] [,4] #> [1,] 1 1 0 0 #> [2,] 0 0 1 1#> [,1] [,2] [,3] [,4] #> [1,] 1 0 1 0 #> [2,] 0 1 0 1#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] #> [1,] 1 1 1 1 0 0 0 0 #> [2,] 0 0 0 0 1 1 1 1#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] #> [1,] 1 1 0 0 1 1 0 0 #> [2,] 0 0 1 1 0 0 1 1#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] #> [1,] 1 0 1 0 1 0 1 0 #> [2,] 0 1 0 1 0 1 0 1#> [,1] [,2] [,3] [,4] #> [1,] 1 1 0 0 #> [2,] 0 0 1 1 #> [3,] 1 0 1 0 #> [4,] 0 1 0 1