bamos / block

An intelligent block matrix library for numpy, PyTorch, and beyond.
Apache License 2.0
297 stars 33 forks source link

CVXPY #2

Open robokang opened 7 years ago

robokang commented 7 years ago

Supporting for the bmat of CVXPY (http://www.cvxpy.org/en/latest/tutorial/functions/index.html?highlight=bmat) would be very useful.

bamos commented 7 years ago

In my uses of cvxpy, I'm able to use block to construct the numpy coefficient matrices and I'm not sure when I would want to use this on the cvxpy types. How would you use this with cvxpy?

robokang commented 7 years ago

I use cvxpy block for feedback controller design of dynamical systems (e.g. see https://yalmip.github.io/example/lpvstatefeedback/). It would be convenient if I can treat semidefinite matrix variables in a block matrix in the same way as that of numpy.