https://github.com/cran/pracma
Tip revision: d57c14d79af36feb7376258875e720ceffcc1312 authored by Hans W. Borchers on 11 October 2014, 00:00:00 UTC
version 1.7.3
version 1.7.3
Tip revision: d57c14d
kron.R
##
## k r o n . R Kronecker product
##
kron <- function(a, b) {
if (length(a) == 0 || length(b) == 0) return(c())
if (!(is.numeric(a) || is.complex(a)) ||
!(is.numeric(b) || is.complex(b)))
stop("Arguments 'a' and 'b' must be real/complex vectors/matrices.")
kronecker(a, b)
}