Ask Your Question
0

How to convert Gram matrix to quadratic form?

asked 2023-12-10 23:25:41 +0100

azerbajdzan gravatar image

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]
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-12-10 23:32:55 +0100

azerbajdzan gravatar image

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]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-12-10 23:25:41 +0100

Seen: 86 times

Last updated: Dec 10 '23