Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding cp.squeeze #2290

Open
Transurgeon opened this issue Nov 19, 2023 · 0 comments
Open

Adding cp.squeeze #2290

Transurgeon opened this issue Nov 19, 2023 · 0 comments

Comments

@Transurgeon
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants