Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is this the only way to do it or there is some built-in function?

QuadraticForm(gm + gm.transpose()).coefficients()

[4, -12, 8, -4, 12, -16, 8, 6, -6, 2]