Functions | Variables
polys.cc File Reference
#include <kernel/mod2.h>
#include <omalloc/omalloc.h>
#include <misc/options.h>
#include "polys.h"

Go to the source code of this file.

Functions

void rChangeCurrRing (ring r)
 

Variables

ring currRing = NULL
 Widely used global variable which specifies the current polynomial ring for Singular interpreter and legacy implementatins. : one should avoid using it in newer designs, for example due to possible problems in parallelization with threads. More...
 

Function Documentation

§ rChangeCurrRing()

void rChangeCurrRing ( ring  r)

Definition at line 12 of file polys.cc.

13 {
14  #if 0
15  if ((currRing!=NULL)&&(currRing!=r))
16  {
18  }
19  #endif
20  if( r != NULL )
21  {
22  rTest(r);
23 
24  //------------ set global ring vars --------------------------------
25  currRing = r;
26  //------------ global variables related to coefficients ------------
27  assume( r->cf!= NULL );
28  nSetChar(r->cf);
29  //------------ global variables related to polys
30  p_SetGlobals(r);
31  //------------ global variables related to factory -----------------
32  }
33  else
34  {
35  currRing = NULL;
36  }
37 }
unsigned si_opt_1
Definition: options.c:5
static FORCE_INLINE void nSetChar(const coeffs r)
initialisations after each ring change
Definition: coeffs.h:440
const ring r
Definition: syzextra.cc:208
#define assume(x)
Definition: mod2.h:403
#define rTest(r)
Definition: ring.h:775
#define NULL
Definition: omList.c:10
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition: polys.cc:10
#define TEST_RINGDEP_OPTS
Definition: options.h:95
void p_SetGlobals(const ring r, BOOLEAN complete)
set all properties of a new ring - also called by rComplete
Definition: ring.cc:3316

Variable Documentation

§ currRing

ring currRing = NULL

Widely used global variable which specifies the current polynomial ring for Singular interpreter and legacy implementatins. : one should avoid using it in newer designs, for example due to possible problems in parallelization with threads.

Definition at line 10 of file polys.cc.