MLIR
20.0.0git
|
#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
Public Member Functions | |
MonomialBase (const CoefficientType &coeff, const APInt &expo) | |
virtual | ~MonomialBase ()=default |
const CoefficientType & | getCoefficient () const |
CoefficientType & | getMutableCoefficient () |
const APInt & | getExponent () const |
void | setCoefficient (const CoefficientType &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... | |
Derived | add (const Derived &other) |
virtual bool | isMonic () const =0 |
virtual void | coefficientToString (llvm::SmallString< 16 > &coeffString) const =0 |
Protected Attributes | |
CoefficientType | coefficient |
APInt | exponent |
Friends | |
template<class D , typename T > | |
::llvm::hash_code | hash_value (const MonomialBase< D, T > &arg) |
Definition at line 33 of file Polynomial.h.
|
inline |
Definition at line 35 of file Polynomial.h.
|
virtualdefault |
|
inline |
Definition at line 57 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::coefficient, and mlir::polynomial::MonomialBase< Derived, CoefficientType >::exponent.
|
pure virtual |
Implemented in mlir::polynomial::FloatMonomial, and mlir::polynomial::IntMonomial.
|
inline |
Definition at line 39 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::coefficient.
|
inline |
Definition at line 41 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::exponent.
|
inline |
Definition at line 40 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::coefficient.
|
pure virtual |
Implemented in mlir::polynomial::FloatMonomial, and mlir::polynomial::IntMonomial.
|
inline |
Definition at line 48 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::coefficient, and mlir::polynomial::MonomialBase< Derived, CoefficientType >::exponent.
|
inline |
Monomials are ordered by exponent.
Definition at line 53 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::exponent.
|
inline |
Definition at line 45 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::coefficient, and mlir::polynomial::MonomialBase< Derived, CoefficientType >::exponent.
|
inline |
Definition at line 42 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::coefficient.
|
inline |
Definition at line 43 of file Polynomial.h.
References mlir::polynomial::MonomialBase< Derived, CoefficientType >::exponent.
|
friend |
Definition at line 267 of file Polynomial.h.
|
protected |
Definition at line 74 of file Polynomial.h.
Referenced by mlir::polynomial::MonomialBase< Derived, CoefficientType >::add(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::getCoefficient(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::getMutableCoefficient(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::operator!=(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::operator==(), and mlir::polynomial::MonomialBase< Derived, CoefficientType >::setCoefficient().
|
protected |
Definition at line 75 of file Polynomial.h.
Referenced by mlir::polynomial::MonomialBase< Derived, CoefficientType >::add(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::getExponent(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::operator!=(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::operator<(), mlir::polynomial::MonomialBase< Derived, CoefficientType >::operator==(), and mlir::polynomial::MonomialBase< Derived, CoefficientType >::setExponent().