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

gwAdd -- the direct sum of two Grothendieck-Witt classes

Synopsis

Description

This computes the direct sum of the Grothendieck-Witt classes beta and gamma.

i1 : M = matrix(QQ,{{1,0},{0,1}});

              2       2
o1 : Matrix QQ  <-- QQ
i2 : N = matrix(QQ, {{1, 2}, {2, 5}});

              2       2
o2 : Matrix QQ  <-- QQ
i3 : beta = gwClass(M);
i4 : gamma = gwClass(N);
i5 : gwAdd(beta, gamma)

o5 = GrothendieckWittClass{cache => CacheTable{}}
                           matrix => | 1 0 0 0 |
                                     | 0 1 0 0 |
                                     | 0 0 1 2 |
                                     | 0 0 2 5 |

o5 : GrothendieckWittClass

See also

Ways to use gwAdd :

For the programmer

The object gwAdd is a method function.