std_wrapper.cc
Go to the documentation of this file.
2 #include <kernel/polys.h>
3 #include <kernel/ideals.h>
4 
5 ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
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)
delete id[j], if LT(j) == coeff*mon*LT(i) and vice versa, i.e., delete id[i], if LT(i) == coeff*mon*L...
Compatiblity layer for legacy polynomial operations (over currRing)
ideal kStd(ideal F, ideal Q, tHomog h, intvec **w, intvec *hilb, int syzComp, int newIdeal, intvec *vw, s_poly_proc_t sp)
Definition: kstd1.cc:2225
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:14
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)
gives an ideal/module the minimal possible size
void rChangeCurrRing(ring r)
Definition: polys.cc:14
#define NULL
Definition: omList.c:10
static Poly * h
Definition: janet.cc:978