My Project
|
gcd/content/lcm of polynomials More...
#include "config.h"
#include "timing.h"
#include "cf_assert.h"
#include "debug.h"
#include "cf_defs.h"
#include "canonicalform.h"
#include "cf_iter.h"
#include "cf_reval.h"
#include "cf_primes.h"
#include "cf_algorithm.h"
#include "cfEzgcd.h"
#include "cfGcdAlgExt.h"
#include "cfSubResGcd.h"
#include "cfModGcd.h"
#include "FLINTconvert.h"
#include "facAlgFuncUtil.h"
#include "templates/ftmpl_functions.h"
#include <NTL/ZZX.h>
#include "NTLconvert.h"
Go to the source code of this file.
gcd/content/lcm of polynomials
To compute the GCD different variants are chosen automatically
Definition in file cf_gcd.cc.
|
static |
Definition at line 172 of file cf_gcd.cc.
|
static |
Definition at line 149 of file cf_gcd.cc.
|
static |
static CanonicalForm cf_content ( const CanonicalForm & f, const CanonicalForm & g )
cf_content() - return gcd(g, content(f)).
content(f) is calculated with respect to f's main variable.
CanonicalForm content | ( | const CanonicalForm & | f | ) |
CanonicalForm content ( const CanonicalForm & f )
content() - return content(f) with respect to main variable.
Normalizes result.
CanonicalForm content | ( | const CanonicalForm & | f, |
const Variable & | x | ||
) |
CanonicalForm content ( const CanonicalForm & f, const Variable & x )
content() - return content(f) with respect to x.
x should be a polynomial variable.
Definition at line 629 of file cf_gcd.cc.
CanonicalForm gcd | ( | const CanonicalForm & | f, |
const CanonicalForm & | g | ||
) |
Definition at line 685 of file cf_gcd.cc.
CanonicalForm gcd_poly | ( | const CanonicalForm & | f, |
const CanonicalForm & | g | ||
) |
CanonicalForm gcd_poly ( const CanonicalForm & f, const CanonicalForm & g )
gcd_poly() - calculate polynomial gcd.
This is the dispatcher for polynomial gcd calculation. Different gcd variants get called depending the input, characteristic, and on switches (cf_defs.h)
With the current settings from Singular (i.e. SW_USE_EZGCD= on, SW_USE_EZGCD_P= on, SW_USE_CHINREM_GCD= on, the EZ GCD variants are the default algorithms for multivariate polynomial GCD computations)
Definition at line 492 of file cf_gcd.cc.
|
static |
Definition at line 417 of file cf_gcd.cc.
|
static |
Definition at line 264 of file cf_gcd.cc.
|
static |
Definition at line 178 of file cf_gcd.cc.
|
static |
Definition at line 94 of file cf_gcd.cc.
|
static |
Definition at line 81 of file cf_gcd.cc.
CanonicalForm icontent | ( | const CanonicalForm & | f | ) |
CanonicalForm icontent ( const CanonicalForm & f )
icontent() - return gcd over all coefficients of f which are in a coefficient domain.
Definition at line 74 of file cf_gcd.cc.
|
static |
static CanonicalForm icontent ( const CanonicalForm & f, const CanonicalForm & c )
icontent() - return gcd of c and all coefficients of f which are in a coefficient domain.
Definition at line 49 of file cf_gcd.cc.
bool isPurePoly | ( | const CanonicalForm & | f | ) |
Definition at line 244 of file cf_factor.cc.
CanonicalForm lcm | ( | const CanonicalForm & | f, |
const CanonicalForm & | g | ||
) |
CanonicalForm lcm ( const CanonicalForm & f, const CanonicalForm & g )
lcm() - return least common multiple of f and g.
The lcm is calculated using the formula lcm(f, g) = f * g / gcd(f, g).
Returns zero if one of f or g equals zero.
void out_cf | ( | const char * | s1, |
const CanonicalForm & | f, | ||
const char * | s2 | ||
) |
cf_algorithm.cc - simple mathematical algorithms.
Hierarchy: mathematical algorithms on canonical forms
A "mathematical" algorithm is an algorithm which calculates some mathematical function in contrast to a "structural" algorithm which gives structural information on polynomials.
Compare these functions to the functions in ‘cf_ops.cc’, which are structural algorithms.
Definition at line 99 of file cf_factor.cc.
CanonicalForm pp | ( | const CanonicalForm & | f | ) |
CanonicalForm pp ( const CanonicalForm & f )
pp() - return primitive part of f.
Returns zero if f equals zero, otherwise f / content(f).
CanonicalForm vcontent | ( | const CanonicalForm & | f, |
const Variable & | x | ||
) |
CanonicalForm vcontent ( const CanonicalForm & f, const Variable & x )
vcontent() - return content of f with repect to variables >= x.
The content is recursively calculated over all coefficients in f having level less than x. x should be a polynomial variable.
Definition at line 653 of file cf_gcd.cc.