 |
My Project
debian-1:4.1.1-p2+ds-4build2
|
Go to the source code of this file.
|
| void | maMonomial_Out (mapoly monomial, ring src_r, ring dest_r=NULL) |
| |
| void | maPoly_Out (mapoly mpoly, ring src_ring, ring dest_r=NULL) |
| |
| mapoly | maMonomial_Create (poly p, ring, sBucket_pt bucket=NULL) |
| |
| void | maMonomial_Destroy (mapoly monomial, ring src_r, ring dest_r=NULL) |
| |
| mapoly | maMonomial_Free (mapoly monomial, ring src_r, ring dest_r=NULL) |
| |
| mapoly | maPoly_InsertMonomial (mapoly &into, mapoly what, ring src_r) |
| |
| mapoly | maPoly_InsertMonomial (mapoly &into, poly p, ring src_r, sBucket_pt bucket=NULL) |
| |
| void | maPoly_Optimize (mapoly mpoly, ring src_r) |
| |
| void | maPoly_Eval (mapoly mpoly, ring src_r, ideal dest_id, ring dest_r, int total_cost) |
| |
| void | maMap_CreatePolyIdeal (ideal map_id, ring map_r, ring src_r, ring dest_r, mapoly &mp, maideal &mideal) |
| |
| void | maMap_CreateRings (ideal map_id, ring map_r, ideal image_id, ring image_r, ring &src_r, ring &dest_r, BOOLEAN &no_sort) |
| |
| ideal | maIdeal_2_Ideal (maideal ideal, ring dest_r) |
| |
| ideal | fast_map_common_subexp (const ideal map_id, const ring map_r, const ideal image_id, const ring image_r) |
| |
◆ mapoly_s
◆ macoeff_s
◆ maideal_s
◆ macoeff
◆ maideal
◆ mapoly
◆ fast_map_common_subexp()
| ideal fast_map_common_subexp |
( |
const ideal |
map_id, |
|
|
const ring |
map_r, |
|
|
const ideal |
image_id, |
|
|
const ring |
image_r |
|
) |
| |
Definition at line 354 of file fast_maps.cc.
367 if (dest_r != image_r)
382 Print(
"map[%ld:%d]{%d:", dest_r->bitmask, dest_r->ExpL_Size,
length);
386 #if HAVE_MAP_OPTIMIZE > 0
405 if (dest_r != image_r)
415 res_image_id = res_dest_id;
◆ maIdeal_2_Ideal()
| ideal maIdeal_2_Ideal |
( |
maideal |
ideal, |
|
|
ring |
dest_r |
|
) |
| |
◆ maMap_CreatePolyIdeal()
| void maMap_CreatePolyIdeal |
( |
ideal |
map_id, |
|
|
ring |
map_r, |
|
|
ring |
src_r, |
|
|
ring |
dest_r, |
|
|
mapoly & |
mp, |
|
|
maideal & |
mideal |
|
) |
| |
◆ maMap_CreateRings()
| void maMap_CreateRings |
( |
ideal |
map_id, |
|
|
ring |
map_r, |
|
|
ideal |
image_id, |
|
|
ring |
image_r, |
|
|
ring & |
src_r, |
|
|
ring & |
dest_r, |
|
|
BOOLEAN & |
no_sort |
|
) |
| |
Definition at line 281 of file fast_maps.cc.
286 int* weights = (
int*)
omAlloc0(map_r->N*
sizeof(
int));
300 unsigned long maxExp =
maGetMaxExp(map_id, map_r, image_id, image_r);
301 if (maxExp <= 1) maxExp = 2;
302 else if (maxExp > (
unsigned long) image_r->bitmask)
303 maxExp = (
unsigned long) image_r->bitmask;
◆ maMonomial_Create()
Definition at line 138 of file fast_maps.cc.
148 mp->coeff->bucket = bucket;
◆ maMonomial_Destroy()
| void maMonomial_Destroy |
( |
mapoly |
monomial, |
|
|
ring |
src_r, |
|
|
ring |
dest_r = NULL |
|
) |
| |
◆ maMonomial_Free()
Definition at line 67 of file fast_maps.h.
70 if (monomial->ref <= 0)
◆ maMonomial_Out()
| void maMonomial_Out |
( |
mapoly |
monomial, |
|
|
ring |
src_r, |
|
|
ring |
dest_r = NULL |
|
) |
| |
◆ maPoly_Eval()
| void maPoly_Eval |
( |
mapoly |
mpoly, |
|
|
ring |
src_r, |
|
|
ideal |
dest_id, |
|
|
ring |
dest_r, |
|
|
int |
total_cost |
|
) |
| |
Definition at line 495 of file fast_maps.cc.
498 if ((root!=
NULL) && (root->next!=
NULL))
514 int next_print_cost = total_cost;
529 if (
p->f1->ref>0) f1=
p_Copy(f1,dest_r);
535 if (
p->f2->ref>0) f2=
p_Copy(f2,dest_r);
559 if (cost > next_print_cost)
562 next_print_cost += total_cost;
◆ maPoly_InsertMonomial() [1/2]
Definition at line 184 of file fast_maps.cc.
220 iter->ref += what->ref;
224 while (coeff->next !=
NULL) coeff = coeff->next;
225 coeff->next =
iter->coeff;
226 iter->coeff = what->coeff;
◆ maPoly_InsertMonomial() [2/2]
◆ maPoly_Optimize()
| void maPoly_Optimize |
( |
mapoly |
mpoly, |
|
|
ring |
src_r |
|
) |
| |
◆ maPoly_Out()
| void maPoly_Out |
( |
mapoly |
mpoly, |
|
|
ring |
src_ring, |
|
|
ring |
dest_r = NULL |
|
) |
| |
static int si_min(const int a, const int b)
static BOOLEAN Equal(number a, number b, const coeffs r)
static poly maPoly_EvalMon(poly src, ring src_r, poly *dest_id, ring dest_r)
class maideal_s * maideal
ideal maIdeal_2_Ideal(maideal m_id, ring)
void maMap_CreateRings(ideal map_id, ring map_r, ideal image_id, ring image_r, ring &src_r, ring &dest_r, BOOLEAN &simple)
void maMonomial_Destroy(mapoly mp, ring src_r, ring dest_r)
void sBucketDestroyAdd(sBucket_pt bucket, poly *p, int *length)
static unsigned long maGetMaxExp(ideal pi_id, ring pi_r, ideal map_id, ring map_r)
ideal idrShallowCopyR(ideal id, ring src_r, ring dest_r)
static BOOLEAN length(leftv result, leftv arg)
void maPoly_Optimize(mapoly mpoly, ring src_r)
void id_ShallowDelete(ideal *h, ring r)
Shallowdeletes an ideal/matrix.
static mapoly maFindBestggT(mapoly mp, mapoly &choice, mapoly &fp, mapoly &fq, const ring r)
static unsigned pLength(poly a)
static bool Greater(mono_type m1, mono_type m2)
static poly p_Copy(poly p, const ring r)
returns a copy of p
ring rModifyRing_Wp(ring r, int *weights)
construct Wp, C ring
static void maMap_KillRings(ring map_r, ring image_r, ring src_r, ring dest_r)
ring rModifyRing_Simple(ring r, BOOLEAN ommit_degree, BOOLEAN ommit_comp, unsigned long exp_limit, BOOLEAN &simple)
void PrintS(const char *s)
#define omFreeSize(addr, size)
static int maPoly_Substitute(macoeff c, poly p, ring dest_r)
mapoly maMonomial_Create(poly p, ring, sBucket_pt bucket)
sBucket_pt sBucketCreate(const ring r)
poly prShallowCopyR_NoSort(poly p, ring r, ring dest_r)
static void p_LmFree(poly p, ring)
#define p_LmCmpAction(p, q, r, actionE, actionG, actionS)
static void p_Delete(poly *p, const ring r)
mapoly maPoly_InsertMonomial(mapoly &into, mapoly what, ring src_r)
void maPoly_GetLength(mapoly mp, int &length)
mapoly maMonomial_Free(mapoly monomial, ring src_r, ring dest_r=NULL)
void maPoly_Eval(mapoly root, ring src_r, ideal dest_id, ring dest_r, int total_cost)
ideal idInit(int idsize, int rank)
initialise an ideal / module
static void maPoly_InsertPoly(mapoly &into, poly what, ring src_r, sBucket_pt bucket)
class macoeff_s * macoeff
void maMonomial_Destroy(mapoly monomial, ring src_r, ring dest_r=NULL)
static poly p_Mult_q(poly p, poly q, const ring r)
static number & pGetCoeff(poly p)
return an alias to the leading coefficient of p assumes that p != NULL NOTE: not copy
#define omFreeBin(addr, bin)
void maMap_CreatePolyIdeal(ideal map_id, ring map_r, ring src_r, ring dest_r, mapoly &mp, maideal &mideal)
poly prShallowCopyR(poly p, ring r, ring dest_r)