Is there a way to convert that? For example from this equation:
To this matrix form:
We especially would like to get thos matrices circled-red.
This is the code I have at the moment:
from sympy import *
x, y = symbols('x y')
expr = 0.5 * (x**2) + 3*x + 4*y
print(latex(expr))
I welcome suggestion other than Simpy (no MATLAB please).
At the end of the day I'd like to use it with CVXOPT or Scipy.