https://github.com/cran/pracma
Tip revision: 39aca747f500f69985711f7ae5e9969f93ecc860 authored by Hans W. Borchers on 21 June 2017, 07:52:27 UTC
version 2.0.7
version 2.0.7
Tip revision: 39aca74
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)
}