MLIR  20.0.0git
Public Member Functions | List of all members
mlir::polynomial::IntMonomial Class Reference

A class representing a monomial of a single-variable polynomial with integer coefficients. More...

#include "mlir/Dialect/Polynomial/IR/Polynomial.h"

+ Inheritance diagram for mlir::polynomial::IntMonomial:

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
 

Detailed Description

A class representing a monomial of a single-variable polynomial with integer coefficients.

Definition at line 80 of file Polynomial.h.

Constructor & Destructor Documentation

◆ IntMonomial() [1/2]

mlir::polynomial::IntMonomial::IntMonomial ( int64_t  coeff,
uint64_t  expo 
)
inline

Definition at line 82 of file Polynomial.h.

◆ IntMonomial() [2/2]

mlir::polynomial::IntMonomial::IntMonomial ( )
inline

Definition at line 85 of file Polynomial.h.

◆ ~IntMonomial()

mlir::polynomial::IntMonomial::~IntMonomial ( )
overridedefault

Member Function Documentation

◆ coefficientToString()

void mlir::polynomial::IntMonomial::coefficientToString ( llvm::SmallString< 16 > &  coeffString) const
inlineoverridevirtual

◆ isMonic()

bool mlir::polynomial::IntMonomial::isMonic ( ) const
inlineoverridevirtual

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