cvxpy icon indicating copy to clipboard operation
cvxpy copied to clipboard

Adding cp.squeeze

Open Transurgeon opened this issue 2 years ago • 0 comments

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.

Transurgeon avatar Nov 19 '23 02:11 Transurgeon