View source: R/114_atoms_gmatmul.R
| gmatmul | R Documentation |
Computes the geometric matrix product where (A diamond X)_ij = prod_k X_kj^A_ik.
Log-log affine atom for DGP. Solve with
psolve(problem, gp = TRUE).
gmatmul(A, X)
A |
A constant matrix |
X |
An Expression (positive matrix) |
A Gmatmul atom
x <- Variable(2, pos = TRUE)
A <- matrix(c(1, 0, 0, 1), 2, 2)
prob <- Problem(Minimize(sum(gmatmul(A, x))), list(x >= 0.5))
## Not run: psolve(prob, gp = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.