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

Using * for matrix multiplication has been deprecated since CVXPY 1.1 #710

Closed
baqwas opened this issue Aug 23, 2022 · 1 comment · Fixed by #823
Closed

Using * for matrix multiplication has been deprecated since CVXPY 1.1 #710

baqwas opened this issue Aug 23, 2022 · 1 comment · Fixed by #823

Comments

@baqwas
Copy link

baqwas commented Aug 23, 2022

Not a bug! Simply a note that I will work on suppressing the warnings. Thanks.

Describe the deprecated feature
warnings.warn(msg, UserWarning)
/usr/local/lib/python3.10/dist-packages/cvxpy/expressions/expression.py:593: UserWarning:
This use of * has resulted in matrix multiplication.
Using * for matrix multiplication has been deprecated since CVXPY 1.1.
Use * for matrix-scalar and vector-scalar multiplication.
Use @ for matrix-matrix and matrix-vector multiplication.
Use multiply for elementwise multiplication.
This code path has been hit 2590 times so far.

warnings.warn(msg, UserWarning)

Expected behavior
No warnings.

Screenshots
Working on making changes to the code to suppress the warnings; I will submit a PR if successful in due course. Thanks.

Desktop (please complete the following information):

  • Python version 3.10
  • Each library version
  • OS version Ubunut 22.04
@AtsushiSakai
Copy link
Owner

Thank you for reporting. PR is welcome!!

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

Successfully merging a pull request may close this issue.

2 participants