Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kronecker

Kronecker Product


Description

The generalized kronecker product of two matrices.

Usage

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

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

Arguments

X

An Expression or matrix.

Y

An Expression or matrix.

FUN

Hardwired to "*" for the kronecker product.

make.dimnames

(Unimplemented) Dimension names are not supported in Expression objects.

...

(Unimplemented) Optional arguments.

Value

An Expression that represents the kronecker product.

Examples

X <- cbind(c(1,2), c(3,4))
Y <- Variable(2,2)
val <- cbind(c(5,6), c(7,8))

obj <- X %x% Y
prob <- Problem(Minimize(kronecker(X,Y)[1,1]), list(Y == val))
result <- solve(prob)
result$value
result$getValue(kronecker(X,Y))

CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.