Elementwise Multiplication
The elementwise product of two expressions. The first expression must be constant.
multiply(lh_exp, rh_exp)
lh_exp |
An Expression, vector, or matrix representing the left-hand value. |
rh_exp |
An Expression, vector, or matrix representing the right-hand value. |
An Expression representing the elementwise product of the inputs.
A <- Variable(2,2) c <- cbind(c(1,-1), c(2,-2)) expr <- multiply(c, A) obj <- Minimize(norm_inf(expr)) prob <- Problem(obj, list(A == 5)) result <- solve(prob) result$value result$getValue(expr)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.