swh:1:snp:81eadaa089e8253d8469bcef66aa332632c6c669
Tip revision: a850b1ad48fcaac7a21cb289147c932e23b23acb authored by HwB on 15 July 2011, 00:00:00 UTC
version 0.7-3
version 0.7-3
Tip revision: a850b1a
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)
}