My Project
Toggle main menu visibility
Loading...
Searching...
No Matches
factory
cfGcdAlgExt.h
Go to the documentation of this file.
1
/**
2
* @file cfGcdAlgExt.h
3
*
4
* GCD over Q(a)
5
*
6
* ABSTRACT: Implementation of Encarnacion's GCD algorithm over number fields,
7
* see M.J. Encarnacion "Computing GCDs of polynomials over number fields",
8
* extended to the multivariate case.
9
*
10
* @sa cfNTLzzpEXGCD.h
11
**/
12
13
#ifndef CF_GCD_ALGEXT_H
14
#define CF_GCD_ALGEXT_H
15
16
// #include "config.h"
17
18
#include "
canonicalform.h
"
19
#include "
variable.h
"
20
21
/// gcd over Q(a)
22
CanonicalForm
QGCD
(
const
CanonicalForm
&,
const
CanonicalForm
& );
23
24
#ifndef HAVE_NTL
25
void
tryDivrem (
const
CanonicalForm
&,
const
CanonicalForm
&,
CanonicalForm
&,
26
CanonicalForm
&,
CanonicalForm
&,
const
CanonicalForm
&,
27
bool
&);
28
void
tryEuclid(
const
CanonicalForm
&,
const
CanonicalForm
&,
const
CanonicalForm
&,
CanonicalForm
&,
bool
& );
29
void
tryExtgcd(
const
CanonicalForm
& F,
const
CanonicalForm
&
G
,
const
CanonicalForm
&
M
,
CanonicalForm
&
result
,
CanonicalForm
&
s
,
CanonicalForm
& t,
bool
& fail );
30
#endif
31
void
tryInvert
(
const
CanonicalForm
&,
const
CanonicalForm
&,
CanonicalForm
&,
bool
& );
32
33
/// modular gcd over F_p[x]/(M) for not necessarily irreducible M.
34
/// If a zero divisor is encountered fail is set to true.
35
void
tryBrownGCD
(
const
CanonicalForm
& F,
const
CanonicalForm
&
G
,
const
CanonicalForm
&
M
,
CanonicalForm
&
result
,
bool
& fail,
bool
topLevel
=
true
);
36
37
bool
isLess
(
int
*a,
int
*
b
,
int
lower,
int
upper);
38
bool
isEqual
(
int
*a,
int
*
b
,
int
lower,
int
upper);
39
CanonicalForm
firstLC
(
const
CanonicalForm
&
f
);
40
41
#endif
42
canonicalform.h
Header for factory's main class CanonicalForm.
topLevel
const CanonicalForm CFMap CFMap bool topLevel
Definition
cfGcdAlgExt.cc:58
isLess
bool isLess(int *a, int *b, int lower, int upper)
Definition
cfGcdAlgExt.cc:936
isEqual
bool isEqual(int *a, int *b, int lower, int upper)
Definition
cfGcdAlgExt.cc:947
tryBrownGCD
void tryBrownGCD(const CanonicalForm &F, const CanonicalForm &G, const CanonicalForm &M, CanonicalForm &result, bool &fail, bool topLevel=true)
modular gcd over F_p[x]/(M) for not necessarily irreducible M. If a zero divisor is encountered fail ...
Definition
cfGcdAlgExt.cc:387
QGCD
CanonicalForm QGCD(const CanonicalForm &, const CanonicalForm &)
gcd over Q(a)
Definition
cfGcdAlgExt.cc:731
tryInvert
void tryInvert(const CanonicalForm &, const CanonicalForm &, CanonicalForm &, bool &)
Definition
cfGcdAlgExt.cc:222
firstLC
CanonicalForm firstLC(const CanonicalForm &f)
Definition
cfGcdAlgExt.cc:956
b
CanonicalForm b
Definition
cfModGcd.cc:4111
f
FILE * f
Definition
checklibs.c:9
CanonicalForm
factory's main class
Definition
canonicalform.h:86
result
return result
Definition
facAbsBiFact.cc:76
s
const CanonicalForm int s
Definition
facAbsFact.cc:51
G
STATIC_VAR TreeM * G
Definition
janet.cc:31
M
#define M
Definition
sirandom.c:25
variable.h
operations on variables
Generated on
for My Project by
doxygen 1.17.0
for
Singular