stellatogrp / lropt

Apache License 2.0
19 stars 3 forks source link

Remove cvxpy matrix multiplication warnings #22

Closed bstellato closed 1 year ago

bstellato commented 1 year ago

We get maaaaany warnings of the kind:

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 232 times so far.

Please remove them and make sure we always use @. This may lead to important bugs in the future otherwise.

bstellato commented 1 year ago

I have just executed the tests and now this warning appears 350 times. Please fix this. This makes it impossible to read other warnings in the tests.