The vectorized strictly upper triangular entries of a matrix.
Value
An Expression representing the upper triangle of the input.
Examples
C <- Variable(3,3)
val <- cbind(3:5, 6:8, 9:11)
prob <- Problem(Maximize(upper_tri(C)[3,1]), list(C == val))
result <- solve(prob)
result$value
#> [1] 10
result$getValue(upper_tri(C))
#> [1] 6 9 10