std_wrapper.cc
Go to the documentation of this file.
2 #include <kernel/polys.h>
3 #include <kernel/ideals.h>
4 
6 {
7  ring origin = currRing;
8  if (origin != r)
10 
11  intvec* nullVector = NULL;
12  ideal stdI = kStd(I,currRing->qideal,h,&nullVector); // there is still a memory leak here!!!
13  id_DelDiv(stdI,currRing);
14  idSkipZeroes(stdI);
15 
16  if (origin != r)
17  rChangeCurrRing(origin);
18 
19  return stdI;
20 }
void id_DelDiv(ideal id, const ring r)
ideal kStd(ideal F, ideal Q, tHomog h, intvec **w, intvec *hilb, int syzComp, int newIdeal, intvec *vw)
Definition: kstd1.cc:2067
Compatiblity layer for legacy polynomial operations (over currRing)
const ideal
Definition: gb_hack.h:42
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition: polys.cc:12
const ring r
Definition: syzextra.cc:208
Definition: intvec.h:16
tHomog
Definition: structs.h:37
ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
Definition: std_wrapper.cc:5
void idSkipZeroes(ideal ide)
void rChangeCurrRing(ring r)
Definition: polys.cc:14
#define NULL
Definition: omList.c:10
static Poly * h
Definition: janet.cc:978