MLIR  20.0.0git
Public Member Functions | List of all members
mlir::polynomial::FloatMonomial 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::FloatMonomial:

Public Member Functions

 FloatMonomial (double coeff, uint64_t expo)
 
 FloatMonomial ()
 
 ~FloatMonomial () override=default
 
bool isMonic () const override
 
void coefficientToString (llvm::SmallString< 16 > &coeffString) const override
 
- Public Member Functions inherited from mlir::polynomial::MonomialBase< FloatMonomial, APFloat >
 MonomialBase (const APFloat &coeff, const APInt &expo)
 
virtual ~MonomialBase ()=default
 
const APFloat & getCoefficient () const
 
APFloat & getMutableCoefficient ()
 
const APInt & getExponent () const
 
void setCoefficient (const APFloat &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...
 
FloatMonomial add (const FloatMonomial &other)
 

Additional Inherited Members

- Protected Attributes inherited from mlir::polynomial::MonomialBase< FloatMonomial, APFloat >
APFloat coefficient
 
APInt exponent
 

Detailed Description

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

Definition at line 99 of file Polynomial.h.

Constructor & Destructor Documentation

◆ FloatMonomial() [1/2]

mlir::polynomial::FloatMonomial::FloatMonomial ( double  coeff,
uint64_t  expo 
)
inline

Definition at line 101 of file Polynomial.h.

◆ FloatMonomial() [2/2]

mlir::polynomial::FloatMonomial::FloatMonomial ( )
inline

Definition at line 104 of file Polynomial.h.

◆ ~FloatMonomial()

mlir::polynomial::FloatMonomial::~FloatMonomial ( )
overridedefault

Member Function Documentation

◆ coefficientToString()

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

◆ isMonic()

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

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