Macaulay2 » Documentation
Packages » A1BrouwerDegrees :: getDiagonalEntries
next | previous | forward | backward | up | index | toc

getDiagonalEntries -- extracts a list of diagonal entries for a GrothendieckWittClass

Description

Given a diagonal form, getDiagonalEntries will extract the elements along the diagonal.

i1 : beta = makeGWClass matrix(QQ, {{3,0,0},{0,2,0},{0,0,7}})

o1 = | 3 0 0 |
     | 0 2 0 |
     | 0 0 7 |

o1 : GrothendieckWittClass
i2 : getDiagonalEntries beta

o2 = {3, 2, 7}

o2 : List

If the form is not given with a diagonal representative, this method will first diagonalize it.

i3 : gamma = makeGWClass matrix(RR, {{0,0,1},{0,1,0},{1,0,0}})

o3 = | 0 0 1 |
     | 0 1 0 |
     | 1 0 0 |

o3 : GrothendieckWittClass
i4 : getDiagonalEntries gamma

o4 = {2, 1, -.5}

o4 : List

See also

Ways to use getDiagonalEntries:

  • getDiagonalEntries(GrothendieckWittClass)

For the programmer

The object getDiagonalEntries is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/A1BrouwerDegrees/Documentation/SimplifiedRepresentativesDoc.m2:47:0.