GiNaCRA
0.6.4
|
A class for a multivariate polynomial providing a degree-based representation. More...
#include <MultivariatePolynomialMR.h>
A class for a multivariate polynomial providing a degree-based representation.
Definition at line 106 of file MultivariatePolynomialMR.h.
Definition at line 45 of file MultivariatePolynomialMR.cpp.
Referenced by CalculateRemainder(), normalized(), SPol(), and truncLT().
comp |
Definition at line 50 of file MultivariatePolynomialMR.cpp.
GiNaCRA::MultivariatePolynomialMR::MultivariatePolynomialMR | ( | const MultivariateTermMR & | t1, |
const MonomMRCompare & | comp | ||
) |
GiNaCRA::MultivariatePolynomialMR::MultivariatePolynomialMR | ( | const MultivariateTermMR & | t1, |
const MultivariateTermMR & | t2, | ||
const MonomMRCompare & | comp | ||
) |
t1 | |
t2 | |
comp |
Definition at line 62 of file MultivariatePolynomialMR.cpp.
References mTerms.
GiNaCRA::MultivariatePolynomialMR::MultivariatePolynomialMR | ( | sMT_It | begin, |
sMT_It | last, | ||
const MonomMRCompare & | comp | ||
) |
begin | |
last | |
comp |
Definition at line 70 of file MultivariatePolynomialMR.cpp.
GiNaCRA::MultivariatePolynomialMR::MultivariatePolynomialMR | ( | const GiNaC::ex & | expr, |
const MonomMRCompare & | cmp | ||
) |
Constructs a multivariate polynomial with standard variables using graded degree lexicographic monomial ordering.
expr | a polynomial |
cmp | the ordering |
Definition at line 106 of file MultivariatePolynomialMR.cpp.
References GiNaCRA::VariableListPool::getVariables(), GiNaC::is_constant(), and mTerms.
GiNaCRA::MultivariatePolynomialMR::MultivariatePolynomialMR | ( | const sMT_It | begin1, |
const sMT_It | last1, | ||
const sMT_It | begin2, | ||
const sMT_It | last2, | ||
const MonomMRCompare & | comp | ||
) |
Creates an object with the sum of the given terms.
begin1 | |
last1 | |
begin2 | |
last2 | |
comp | Monomial Ordering. Note that if this is different from the order of the sets 1 and 2, the creation of the object is slow. |
Definition at line 75 of file MultivariatePolynomialMR.cpp.
References GiNaCRA::MonomMRCompare::GetMonomOrdering(), mCmp, and mTerms.
MultivariatePolynomialMR GiNaCRA::MultivariatePolynomialMR::CalculateRemainder | ( | std::list< MultivariatePolynomialMR >::const_iterator | ideallistBegin, |
std::list< MultivariatePolynomialMR >::const_iterator | ideallistEnd | ||
) | const |
Calculates the remainder with respect to the ideal.
ideallistBegin | |
ideallistEnd |
Definition at line 517 of file MultivariatePolynomialMR.cpp.
References GiNaCRA::MultivariateTermMR::divby(), isZero(), lterm(), mCmp, mTerms, and MultivariatePolynomialMR().
Referenced by GiNaCRA::Groebner::solve().
MonomMRCompare GiNaCRA::MultivariatePolynomialMR::getMonomOrder | ( | ) | const [inline] |
MonomOrderingFc GiNaCRA::MultivariatePolynomialMR::getMonomOrderFunction | ( | ) | const [inline] |
Definition at line 161 of file MultivariatePolynomialMR.h.
References GiNaCRA::MonomMRCompare::GetMonomOrdering(), and mCmp.
Referenced by sortByLeadingTerm().
bool GiNaCRA::MultivariatePolynomialMR::isConstant | ( | ) | const [inline] |
Definition at line 180 of file MultivariatePolynomialMR.h.
References mTerms.
Referenced by GiNaCRA::Groebner::solve().
bool GiNaCRA::MultivariatePolynomialMR::isZero | ( | ) | const [inline] |
Checks whether there are any terms.
Definition at line 175 of file MultivariatePolynomialMR.h.
References mTerms.
Referenced by CalculateRemainder(), lmon(), lterm(), and GiNaCRA::Groebner::solve().
GiNaC::ex GiNaCRA::MultivariatePolynomialMR::lcoeff | ( | ) | const [inline] |
Definition at line 211 of file MultivariatePolynomialMR.h.
References mTerms.
Referenced by normalized().
MultivariateMonomialMR GiNaCRA::MultivariatePolynomialMR::lmon | ( | ) | const [inline] |
Definition at line 188 of file MultivariatePolynomialMR.h.
References isZero(), and mTerms.
Referenced by sortByLeadingTerm(), and SPol().
MultivariateTermMR GiNaCRA::MultivariatePolynomialMR::lterm | ( | ) | const [inline] |
Definition at line 201 of file MultivariatePolynomialMR.h.
References isZero(), and mTerms.
Referenced by CalculateRemainder(), and SPol().
MultivariatePolynomialMR GiNaCRA::MultivariatePolynomialMR::multiply | ( | const MultivariateTermMR & | t1 | ) | const [inline] |
t1 |
Definition at line 293 of file MultivariatePolynomialMR.h.
Referenced by SPol().
Definition at line 555 of file MultivariatePolynomialMR.cpp.
References lcoeff(), mCmp, mTerms, and MultivariatePolynomialMR().
unsigned GiNaCRA::MultivariatePolynomialMR::nrOfTerms | ( | ) | const [inline] |
Definition at line 220 of file MultivariatePolynomialMR.h.
References mTerms.
Referenced by SPol().
static bool GiNaCRA::MultivariatePolynomialMR::sortByLeadingTerm | ( | const MultivariatePolynomialMR & | m1, |
const MultivariatePolynomialMR & | m2 | ||
) | [inline, static] |
Definition at line 298 of file MultivariatePolynomialMR.h.
References getMonomOrderFunction(), and lmon().
Referenced by GiNaCRA::Groebner::addPolynomial(), and GiNaCRA::Groebner::Groebner().
const MultivariatePolynomialMR GiNaCRA::MultivariatePolynomialMR::SPol | ( | const MultivariatePolynomialMR & | p1, |
const MultivariatePolynomialMR & | p2 | ||
) | [static] |
Calculates the S-polynomial of p1 and p2.
p1 | |
p2 |
Definition at line 492 of file MultivariatePolynomialMR.cpp.
References getMonomOrder(), GiNaCRA::MultivariateTermMR::lcmdivt(), lmon(), lterm(), mCmp, multiply(), MultivariatePolynomialMR(), nrOfTerms(), and truncLT().
Referenced by GiNaCRA::Groebner::solve().
GiNaC::ex GiNaCRA::MultivariatePolynomialMR::toEx | ( | ) | const |
GiNaC expression representing the same multivariate polynomial.
Definition at line 239 of file MultivariatePolynomialMR.cpp.
References mTerms.
const MultivariatePolynomialMR GiNaCRA::MultivariatePolynomialMR::truncLT | ( | ) | const [inline] |
Definition at line 229 of file MultivariatePolynomialMR.h.
References mCmp, mTerms, and MultivariatePolynomialMR().
Referenced by SPol().
bool operator!= | ( | const MultivariatePolynomialMR & | p1, |
const MultivariatePolynomialMR & | p2 | ||
) | [friend] |
Definition at line 257 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator* | ( | const MultivariatePolynomialMR & | p1, |
const MultivariateTermMR & | t1 | ||
) | [friend] |
Definition at line 449 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator* | ( | const MultivariateTermMR & | t1, |
MultivariatePolynomialMR & | p1 | ||
) | [friend] |
Definition at line 461 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator* | ( | const MultivariatePolynomialMR & | p1, |
const MultivariateMonomialMR & | m1 | ||
) | [friend] |
Definition at line 466 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator* | ( | const MultivariateMonomialMR & | m1, |
const MultivariatePolynomialMR & | p1 | ||
) | [friend] |
Definition at line 478 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator+ | ( | const MultivariatePolynomialMR & | p1, |
const MultivariatePolynomialMR & | p2 | ||
) | [friend] |
Definition at line 265 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator+ | ( | const MultivariatePolynomialMR & | p1, |
const MultivariateTermMR & | t1 | ||
) | [friend] |
Definition at line 314 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator+ | ( | const MultivariateTermMR & | t1, |
MultivariatePolynomialMR & | p1 | ||
) | [friend] |
Definition at line 342 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator+ | ( | const MultivariatePolynomialMR & | p1, |
const MultivariateMonomialMR & | m1 | ||
) | [friend] |
Definition at line 347 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator+ | ( | const MultivariateMonomialMR & | m1, |
const MultivariatePolynomialMR & | p1 | ||
) | [friend] |
Definition at line 376 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator- | ( | const MultivariatePolynomialMR & | p1, |
const MultivariatePolynomialMR & | p2 | ||
) | [friend] |
Definition at line 381 of file MultivariatePolynomialMR.cpp.
const MultivariatePolynomialMR operator- | ( | const MultivariatePolynomialMR & | p1 | ) | [friend] |
Definition at line 432 of file MultivariatePolynomialMR.cpp.
std::ostream& operator<< | ( | std::ostream & | os, |
const MultivariatePolynomialMR & | rhs | ||
) | [friend] |
bool operator== | ( | const MultivariatePolynomialMR & | p1, |
const MultivariatePolynomialMR & | p2 | ||
) | [friend] |
Definition at line 249 of file MultivariatePolynomialMR.cpp.
Ordering of Terms.
Definition at line 305 of file MultivariatePolynomialMR.h.
Referenced by CalculateRemainder(), getMonomOrder(), getMonomOrderFunction(), MultivariatePolynomialMR(), normalized(), GiNaCRA::operator*(), GiNaCRA::operator+(), GiNaCRA::operator-(), SPol(), and truncLT().
std::set<MultivariateTermMR, MonomMRCompare> GiNaCRA::MultivariatePolynomialMR::mTerms [protected] |
Set of Terms.
Definition at line 307 of file MultivariatePolynomialMR.h.
Referenced by CalculateRemainder(), isConstant(), isZero(), lcoeff(), lmon(), lterm(), MultivariatePolynomialMR(), normalized(), nrOfTerms(), GiNaCRA::operator!=(), GiNaCRA::operator*(), GiNaCRA::operator+(), GiNaCRA::operator-(), GiNaCRA::operator<<(), GiNaCRA::operator==(), toEx(), and truncLT().