[Next][Prev] [Right] [Left] [Up] [Index] [Root]

Arithmetic with Elements

Recall that if the generic abelian group A has been built with UseRepresentation as true, then arithmetic with elements of A is trivial. This is of course compensates for the cost of having all elements of A being represented as linear combinations of the generators of A obtained from the computation of A' structure.

Subsections

Addition and Subtraction

g + d : GrpAbGenElt, GrpAbGenElt -> GrpAbGenElt
Given elements g and d belonging to the same abelian group A, return the sum of g and d.
- g : GrpAbGenElt -> GrpAbGenElt
The inverse of element g.
g - d : GrpAbGenElt, GrpAbGenElt -> GrpAbGenElt
Given elements g and d belonging to the same abelian group A, return the sum of g and the inverse of d.
n * g : RngIntElt, GrpAbGenElt-> GrpAbGenElt
g * n : GrpAbGenElt, RngIntElt -> GrpAbGenElt
Given an integer n, return the element w + w + ... w (|n| summands), where w = g, if n is positive and w = - g if n is negative.
 [Next][Prev] [Right] [Left] [Up] [Index] [Root]