Functions | Variables
polys.cc File Reference
#include <kernel/mod2.h>
#include <omalloc/omalloc.h>
#include <misc/auxiliary.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

void rChangeCurrRing ( ring  r)

Definition at line 14 of file polys.cc.

15 {
16  #if 0
17  if ((currRing!=NULL)&&(currRing!=r))
18  {
20  }
21  #endif
22  if( r != NULL )
23  {
24  rTest(r);
25 
26  //------------ set global ring vars --------------------------------
27  currRing = r;
28  //------------ global variables related to coefficients ------------
29  assume( r->cf!= NULL );
30  nSetChar(r->cf);
31  //------------ global variables related to polys
32  p_SetGlobals(r);
33  //------------ global variables related to factory -----------------
34  }
35  else
36  {
37  currRing = NULL;
38  }
39 }
unsigned si_opt_1
Definition: options.c:5
static FORCE_INLINE void nSetChar(const coeffs r)
initialisations after each ring change
Definition: coeffs.h:437
const ring r
Definition: syzextra.cc:208
#define assume(x)
Definition: mod2.h:405
#define rTest(r)
Definition: ring.h:781
#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:12
#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:3401

Variable Documentation

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 12 of file polys.cc.