Various algebraic structures.
More...
Various algebraic structures.
◆ operator<<()
Writes the given term to the given output stream.
The term will be written in the format g3^-7
, where in this example the term represents generator number 3 raised to the -7th power.
If the term has exponent 0 or 1, the output format will be appropriately simplified.
- Parameters
-
out | the output stream to which to write. |
term | the term to write. |
- Returns
- a reference to the given output stream.
◆ swap() [1/6]
Swaps the contents of the two given abelian groups.
This global routine simply calls AbelianGroup::swap(); it is provided so that AbelianGroup meets the C++ Swappable requirements.
- Parameters
-
lhs | the group whose contents should be swapped with rhs. |
rhs | the group whose contents should be swapped with lhs. |
◆ swap() [2/6]
Swaps the contents of the two given expressions.
This global routine simply calls GroupExpression::swap(); it is provided so that GroupExpression meets the C++ Swappable requirements.
- Parameters
-
lhs | the expression whose contents should be swapped with rhs. |
rhs | the expression whose contents should be swapped with lhs. |
◆ swap() [3/6]
Swaps the contents of the two given group presentations.
This global routine simply calls GroupPresentation::swap(); it is provided so that GroupPresentation meets the C++ Swappable requirements.
- Parameters
-
lhs | the presentation whose contents should be swapped with rhs. |
rhs | the presentation whose contents should be swapped with lhs. |
◆ swap() [4/6]
Swaps the contents of the two given homomorphisms.
This global routine simply calls HomGroupPresentation::swap(); it is provided so that HomGroupPresentation meets the C++ Swappable requirements.
- Parameters
-
lhs | the homomorphism whose contents should be swapped with rhs. |
rhs | the homomorphism whose contents should be swapped with lhs. |
◆ swap() [5/6]
Swaps the contents of the two given homomorphisms.
This global routine simply calls HomMarkedAbelianGroup::swap(); it is provided so that HomMarkedAbelianGroup meets the C++ Swappable requirements.
- Parameters
-
lhs | the homomorphism whose contents should be swapped with rhs. |
rhs | the homomorphism whose contents should be swapped with lhs. |
◆ swap() [6/6]
Swaps the contents of the two given abelian groups.
This global routine simply calls MarkedAbelianGroup::swap(); it is provided so that MarkedAbelianGroup meets the C++ Swappable requirements.
- Parameters
-
lhs | the group whose contents should be swapped with rhs. |
rhs | the group whose contents should be swapped with lhs. |