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 | |
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 |
A class representing a monomial of a single-variable polynomial with integer coefficients.
Definition at line 99 of file Polynomial.h.
|
inline |
Definition at line 101 of file Polynomial.h.
|
inline |
Definition at line 104 of file Polynomial.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements mlir::polynomial::MonomialBase< FloatMonomial, APFloat >.
Definition at line 110 of file Polynomial.h.
References mlir::polynomial::MonomialBase< FloatMonomial, APFloat >::coefficient.
|
inlineoverridevirtual |
Implements mlir::polynomial::MonomialBase< FloatMonomial, APFloat >.
Definition at line 108 of file Polynomial.h.
References mlir::polynomial::MonomialBase< FloatMonomial, APFloat >::coefficient.