MLIR
20.0.0git
|
A single-variable polynomial with integer coefficients. More...
#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
Public Member Functions | |
IntPolynomial (ArrayRef< IntMonomial > terms) | |
![]() | |
PolynomialBase ()=delete | |
PolynomialBase (ArrayRef< IntMonomial > terms) | |
operator bool () const | |
bool | operator== (const PolynomialBase &other) const |
bool | operator!= (const PolynomialBase &other) const |
void | print (raw_ostream &os, ::llvm::StringRef separator, ::llvm::StringRef exponentiation) const |
void | print (raw_ostream &os) const |
IntPolynomial | add (const IntPolynomial &other) |
void | dump () const |
std::string | toIdentifier () const |
unsigned | getDegree () const |
ArrayRef< IntMonomial > | getTerms () const |
Static Public Member Functions | |
static FailureOr< IntPolynomial > | fromMonomials (ArrayRef< IntMonomial > monomials) |
static IntPolynomial | fromCoefficients (ArrayRef< int64_t > coeffs) |
Returns a polynomial with coefficients given by coeffs . More... | |
A single-variable polynomial with integer coefficients.
Eg: x^1024 + x + 1
Definition at line 228 of file Polynomial.h.
|
inlineexplicit |
Definition at line 230 of file Polynomial.h.
|
static |
Returns a polynomial with coefficients given by coeffs
.
The value coeffs[i] is converted to a monomial with exponent i.
Definition at line 59 of file Polynomial.cpp.
|
static |
Definition at line 35 of file Polynomial.cpp.