Macaulay2 Engine
Loading...
Searching...
No Matches
FreeAlgebraElement Class Reference

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 FreeAlgebraring () const
Polyoperator* ()
const Polyoperator* () 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 FreeAlgebramRing
Poly mPoly

Detailed Description

Owned Poly value paired with its FreeAlgebra*, providing natural operator-overloaded arithmetic.

Note
AI-generated documentation. Verify against the source before relying on it.

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.


The documentation for this class was generated from the following file: