cvxpy
cvxpy copied to clipboard
Adding cp.squeeze
Is your feature request related to a problem? Please describe. Missing squeeze operation for full compatibility with NumPy. This currently has the same functionality as flatten since cvxpy expressions are limited to 2-dimensions. However with the addition of nd-expressions, the squeeze operation could be helpful to ensure shape consistency.
Describe the solution you'd like Implement an equivalent operation to np.squeeze in cvxpy.