My Project
Loading...
Searching...
No Matches
Functions
tgb.h File Reference
#include "polys/monomials/ring.h"
#include "kernel/structs.h"

Go to the source code of this file.

Functions

ideal t_rep_gb (const ring r, ideal arg_I, int syz_comp, BOOLEAN F4_mode=FALSE)
 

Function Documentation

◆ t_rep_gb()

ideal t_rep_gb ( const ring  r,
ideal  arg_I,
int  syz_comp,
BOOLEAN  F4_mode = FALSE 
)

Definition at line 3571 of file tgb.cc.

3572{
3573 assume (r == currRing);
3574 ring orig_ring = r;
3575 int pos;
3576 ring new_ring = rAssure_TDeg (orig_ring, pos);
3577 ideal s_h;
3578 if(orig_ring != new_ring)
3579 {
3580 rChangeCurrRing (new_ring);
3581 s_h = idrCopyR_NoSort (arg_I, orig_ring, new_ring);
3582 /*int i;
3583 for(i=0;i<IDELEMS(s_h);i++)
3584 {
3585 poly p=s_h->m[i];
3586 while(p)
3587 {
3588 p_Setm(p,new_ring);
3589 pIter(p);
3590 }
3591 } */
3592 }
3593 else
3594 {
3595 s_h = id_Copy (arg_I, orig_ring);
3596 }
3597 idTest (s_h);
3598
3599 ideal s_result = do_t_rep_gb (new_ring, s_h, syz_comp, F4_mode, pos);
3600 ideal result;
3601 if(orig_ring != new_ring)
3602 {
3603 idTest (s_result);
3604 rChangeCurrRing (orig_ring);
3605 result = idrMoveR_NoSort (s_result, new_ring, orig_ring);
3606
3607 idTest (result);
3608 //rChangeCurrRing(new_ring);
3609 rDelete(new_ring);
3610 //rChangeCurrRing(orig_ring);
3611 }
3612 else
3613 result = s_result;
3614 idTest (result);
3615 return result;
3616}
return result
Definition: facAbsBiFact.cc:75
ideal id_Copy(ideal h1, const ring r)
copy an ideal
#define idTest(id)
Definition: ideals.h:47
#define assume(x)
Definition: mod2.h:389
void rChangeCurrRing(ring r)
Definition: polys.cc:15
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition: polys.cc:13
ideal idrMoveR_NoSort(ideal &id, ring src_r, ring dest_r)
Definition: prCopy.cc:261
ideal idrCopyR_NoSort(ideal id, ring src_r, ring dest_r)
Definition: prCopy.cc:205
ring rAssure_TDeg(ring r, int &pos)
Definition: ring.cc:4527
void rDelete(ring r)
unconditionally deletes fields in r
Definition: ring.cc:450
ideal do_t_rep_gb(ring, ideal arg_I, int syz_comp, BOOLEAN F4_mode, int deg_pos)
Definition: tgb.cc:3619