https://github.com/cran/pracma
Tip revision: 138099729fa36cb6c4eaacac3037ea9105d6700a authored by Hans W. Borchers on 28 November 2013, 00:00:00 UTC
version 1.5.8
version 1.5.8
Tip revision: 1380997
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)
}