MLIR
20.0.0git
|
A class representing a monomial of a single-variable polynomial with integer coefficients. More...
#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
Public Member Functions | |
IntMonomial (int64_t coeff, uint64_t expo) | |
IntMonomial () | |
~IntMonomial () override=default | |
bool | isMonic () const override |
void | coefficientToString (llvm::SmallString< 16 > &coeffString) const override |
Public Member Functions inherited from mlir::polynomial::MonomialBase< IntMonomial, APInt > | |
MonomialBase (const APInt &coeff, const APInt &expo) | |
virtual | ~MonomialBase ()=default |
const APInt & | getCoefficient () const |
APInt & | getMutableCoefficient () |
const APInt & | getExponent () const |
void | setCoefficient (const APInt &coeff) |
void | setExponent (const APInt &exp) |
bool | operator== (const MonomialBase &other) const |
bool | operator!= (const MonomialBase &other) const |
bool | operator< (const MonomialBase &other) const |
Monomials are ordered by exponent. More... | |
IntMonomial | add (const IntMonomial &other) |
Additional Inherited Members | |
Protected Attributes inherited from mlir::polynomial::MonomialBase< IntMonomial, APInt > | |
APInt | coefficient |
APInt | exponent |
A class representing a monomial of a single-variable polynomial with integer coefficients.
Definition at line 80 of file Polynomial.h.
|
inline |
Definition at line 82 of file Polynomial.h.
|
inline |
Definition at line 85 of file Polynomial.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements mlir::polynomial::MonomialBase< IntMonomial, APInt >.
Definition at line 92 of file Polynomial.h.
References mlir::polynomial::MonomialBase< IntMonomial, APInt >::coefficient.
|
inlineoverridevirtual |
Implements mlir::polynomial::MonomialBase< IntMonomial, APInt >.
Definition at line 90 of file Polynomial.h.
References mlir::polynomial::MonomialBase< IntMonomial, APInt >::coefficient.