How to convert Gram matrix to quadratic form?
How to do the opposite? Given gm
, how to compute coefficients of quadratic form qf
?
qf=QuadraticForm(ZZ, 4, [4, -12, 8, -4, 12, -16, 8, 6, -6, 2])
gm=qf.Gram_matrix()
gm
[ 4 -6 4 -2]
[-6 12 -8 4]
[ 4 -8 6 -3]
[-2 4 -3 2]