kron: Kronecker and Khatri-Rao products for structured sparse...

Description Usage Arguments See Also Examples

Description

Kronecker and Khatri-Rao products for structured sparse matrices

Usage

1
2
3
4
5
6
7
kron(X, Y, trans = "*", makedimnames = FALSE, ...)

kr(X, Y, trans = "*")

## S4 method for signature 'strucMatrix,strucMatrix'
kronecker(X, Y, FUN = "*",
  make.dimnames = FALSE, ...)

Arguments

X,Y

structured sparse matrices (strucMatrix-class)

trans

see argument FUN in outer

makedimnames

ignored

...

ignored

FUN

a function; it may be a quoted string.

make.dimnames

Provide dimnames that are the product of the dimnames of X and Y.

See Also

Other matrixCombining: .bind, bind, rep.strucMatrix; strucMatrixRowSubset, subset.strucMatrix

Other matrixCombining: .bind, bind, rep.strucMatrix; strucMatrixRowSubset, subset.strucMatrix

Examples

1
2
3
4
5
set.seed(1)
X <- strucMatrix(c(1, 2, 1, 2), c(1, 1, 2, 2), 1:4, rnorm(4))
Y <- strucMatrix(c(1, 2, 1), c(1, 1, 2), 1:3, rnorm(3))
(kronExample <- kron(X, Y))
(krExample <- kr(X, Y))

stevencarlislewalker/lme4ord documentation built on May 30, 2019, 4:43 p.m.