| 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]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.