A quadratic form is a map F^n ---> F. The signature is supposed to be independent of the choice of basis. So the number of positve/negative eigenvalues makes sense only for F = the reals. For instance in the complex numbers you can always find an orthogonal basis with gram matrix diag(1,....,1,0,...0). So here the invariant would be the rank. If you want a signature over another field, you have to fix an embedding F--> RR and consider the quadratic form as a real quadratic form.
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/6a4409d6-a831-470f-9136-978a1880ad5a%40googlegroups.com.