Open
Description
Describe the bug
It appears that certain functions of vectorized DQCP expressions are not correctly identified as DQCP, even though their scalar counterparts are. Is this intended behaviour?
To Reproduce
import cvxpy as cv
a = cv.Variable(2)
b = cv.Variable(2, pos=True)
ratio = a / b
div = ratio[0]
div_sc = a[0] / b[0]
print(div.is_dqcp()) # False
print(div_sc.is_dqcp()) # True
log = cv.log(ratio)[0]
log_sc = cv.log(div_sc)
print(log.is_dqcp()) # False
print(log_sc.is_dqcp()) # True
Version
- CVXPY Version: 1.6.5
Metadata
Metadata
Assignees
Labels
No labels