|
Macaulay2 Engine
|
Owned Poly value paired with its FreeAlgebra*, providing natural operator-overloaded arithmetic. More...
#include <FreeAlgebra.hpp>
Public Member Functions | |
| FreeAlgebraElement (const FreeAlgebra *F) | |
| FreeAlgebraElement (const FreeAlgebra *F, const Poly &f) | |
| ~FreeAlgebraElement () | |
| const FreeAlgebra & | ring () const |
| Poly & | operator* () |
| const Poly & | operator* () const |
| bool | operator== (const FreeAlgebraElement &g) const |
| FreeAlgebraElement | operator+ (const FreeAlgebraElement &g) |
| FreeAlgebraElement | operator- (const FreeAlgebraElement &g) |
| FreeAlgebraElement | operator- () const |
| FreeAlgebraElement | operator* (const FreeAlgebraElement &g) |
| FreeAlgebraElement | operator^ (int n) |
Private Attributes | |
| const FreeAlgebra * | mRing |
| Poly | mPoly |
Owned Poly value paired with its FreeAlgebra*, providing natural operator-overloaded arithmetic.
Debugging / scripting convenience: wraps a Poly so the algebra pointer is implicit and +, -, *, unary -, and ^n (power) can be written directly. The destructor calls FreeAlgebra::clear, so callers do not have to manage the underlying Poly lifetime.
Definition at line 269 of file FreeAlgebra.hpp.