MLIR
20.0.0git
|
A single-variable polynomial with double coefficients. More...
#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
Public Member Functions | |
FloatPolynomial (ArrayRef< FloatMonomial > terms) | |
Public Member Functions inherited from mlir::polynomial::PolynomialBase< FloatPolynomial, FloatMonomial > | |
PolynomialBase ()=delete | |
PolynomialBase (ArrayRef< FloatMonomial > 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 |
FloatPolynomial | add (const FloatPolynomial &other) |
void | dump () const |
std::string | toIdentifier () const |
unsigned | getDegree () const |
ArrayRef< FloatMonomial > | getTerms () const |
Static Public Member Functions | |
static FailureOr< FloatPolynomial > | fromMonomials (ArrayRef< FloatMonomial > monomials) |
static FloatPolynomial | fromCoefficients (ArrayRef< double > coeffs) |
Returns a polynomial with coefficients given by coeffs . More... | |
A single-variable polynomial with double coefficients.
Eg: 1.0 x^1024 + 3.5 x + 1e-05
Definition at line 245 of file Polynomial.h.
|
inlineexplicit |
Definition at line 247 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 63 of file Polynomial.cpp.
|
static |
Definition at line 40 of file Polynomial.cpp.