Go to the source code of this file.
typedef void*(* iiConvertProc) (void *data) |
typedef void(* iiConvertProcL) (leftv out, leftv in) |
static void* iiBI2Id |
( |
void * |
data | ) |
|
|
static |
Definition at line 93 of file ipconv.cc.
const CanonicalForm CFMap CFMap int &both_non_zero int n
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
ideal idInit(int idsize, int rank)
initialise an ideal / module
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
static FORCE_INLINE char * nCoeffString(const coeffs cf)
TODO: make it a virtual method of coeffs, together with: Decompose & Compose, rParameter & rPar...
void Werror(const char *fmt,...)
static void* iiBI2N |
( |
void * |
data | ) |
|
|
static |
Definition at line 177 of file ipconv.cc.
const CanonicalForm CFMap CFMap int &both_non_zero int n
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
static FORCE_INLINE char * nCoeffString(const coeffs cf)
TODO: make it a virtual method of coeffs, together with: Decompose & Compose, rParameter & rPar...
void Werror(const char *fmt,...)
static void* iiBI2P |
( |
void * |
data | ) |
|
|
static |
Definition at line 50 of file ipconv.cc.
poly p_NSet(number n, const ring r)
returns the poly representing the number n, destroys n
const CanonicalForm CFMap CFMap int &both_non_zero int n
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
static FORCE_INLINE char * nCoeffString(const coeffs cf)
TODO: make it a virtual method of coeffs, together with: Decompose & Compose, rParameter & rPar...
void Werror(const char *fmt,...)
static void* iiBI2V |
( |
void * |
data | ) |
|
|
static |
Definition at line 71 of file ipconv.cc.
poly p_NSet(number n, const ring r)
returns the poly representing the number n, destroys n
const CanonicalForm CFMap CFMap int &both_non_zero int n
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
static FORCE_INLINE char * nCoeffString(const coeffs cf)
TODO: make it a virtual method of coeffs, together with: Decompose & Compose, rParameter & rPar...
void Werror(const char *fmt,...)
Definition at line 287 of file ipconv.cc.
289 memset(output,0,
sizeof(
sleftv));
290 if ((inputType==outputType)
294 memcpy(output,input,
sizeof(*output));
295 memset(input,0,
sizeof(*input));
301 output->
data=(
char *)(
long)input->
Typ();
332 sprintf(tmp,
"%c%d",*(
currRing->names[nr-1]),
350 number
n=(number)input->
data;
352 input->
data=(
void*)n;
359 memset(input,0,
sizeof(*input));
370 if((dConvertTypes[
index].i_typ==inputType)
371 &&(dConvertTypes[
index].o_typ==outputType))
375 Print(
"automatic conversion %s -> %s\n",
380 output->
rtyp=outputType;
387 dConvertTypes[
index].
pl(output,input);
Class used for (list of) interpreter objects.
const CanonicalForm CFMap CFMap int &both_non_zero int n
static number & pGetCoeff(poly p)
return an alias to the leading coefficient of p assumes that p != NULL NOTE: not copy ...
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define pGetExp(p, i)
Exponent.
void StringSetS(const char *st)
static FORCE_INLINE void n_Write(number &n, const coeffs r, const BOOLEAN bShortOut=TRUE)
#define pIsConstant(p)
like above, except that Comp might be != 0
static int index(p_Length length, p_Ord ord)
const char * Tok2Cmdname(int tok)
static void* iiDummy |
( |
void * |
data | ) |
|
|
static |
static void* iiI2BI |
( |
void * |
data | ) |
|
|
static |
Definition at line 171 of file ipconv.cc.
static FORCE_INLINE number n_Init(long i, const coeffs r)
a number representing i in the given coeff field/ring r
const CanonicalForm CFMap CFMap int &both_non_zero int n
static void* iiI2Id |
( |
void * |
data | ) |
|
|
static |
Definition at line 86 of file ipconv.cc.
89 I->m[0]=
pISet((
int)(
long)data);
ideal idInit(int idsize, int rank)
initialise an ideal / module
static void* iiI2Iv |
( |
void * |
data | ) |
|
|
static |
Definition at line 158 of file ipconv.cc.
160 int s=(int)(
long)data;
const CanonicalForm int s
static void* iiI2N |
( |
void * |
data | ) |
|
|
static |
Definition at line 165 of file ipconv.cc.
167 number
n=
nInit((
int)(
long)data);
const CanonicalForm CFMap CFMap int &both_non_zero int n
static void* iiI2P |
( |
void * |
data | ) |
|
|
static |
static void* iiI2V |
( |
void * |
data | ) |
|
|
static |
static void* iiIm2Bim |
( |
void * |
data | ) |
|
|
static |
Definition at line 208 of file ipconv.cc.
bigintmat * iv2bim(intvec *b, const coeffs C)
static void* iiIm2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 191 of file ipconv.cc.
197 for (i=iv->
rows(); i>0; i--)
199 for (j=iv->
cols(); j>0; j--)
matrix mpNew(int r, int c)
create a r x c zero-matrix
#define IMATELEM(M, I, J)
#define MATELEM(mat, i, j)
static void* iiL2R |
( |
void * |
data | ) |
|
|
static |
Definition at line 271 of file ipconv.cc.
syStrategy syConvList(lists li, BOOLEAN toDel)
static void* iiMa2Mo |
( |
void * |
data | ) |
|
|
static |
Definition at line 152 of file ipconv.cc.
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
ideal id_Matrix2Module(matrix mat, const ring R)
static void* iiMo2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 146 of file ipconv.cc.
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
matrix id_Module2Matrix(ideal mod, const ring R)
static void* iiN2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 230 of file ipconv.cc.
ideal idInit(int idsize, int rank)
initialise an ideal / module
static void * iiN2P |
( |
void * |
data | ) |
|
|
static |
static void* iiP2Id |
( |
void * |
data | ) |
|
|
static |
Definition at line 115 of file ipconv.cc.
#define pGetComp(p)
Component.
ideal idInit(int idsize, int rank)
initialise an ideal / module
static void* iiP2V |
( |
void * |
data | ) |
|
|
static |
Definition at line 260 of file ipconv.cc.
262 int add_row_shift = 0;
264 if (weights!=
NULL) add_row_shift=weights->
min_in();
lists syConvRes(syStrategy syzstr, BOOLEAN toDel, int add_row_shift)
void * atGet(idhdl root, const char *name, int t, void *defaultReturnValue)
static void* iiS2Link |
( |
void * |
data | ) |
|
|
static |
Definition at line 245 of file ipconv.cc.
BOOLEAN slInit(si_link l, char *istr)
int iiTestConvert |
( |
int |
inputType, |
|
|
int |
outputType, |
|
|
struct sConvertTypes * |
dConvertTypes |
|
) |
| |
Definition at line 410 of file ipconv.cc.
412 if ((inputType==outputType)
414 || (outputType==
IDHDL)
425 while (dConvertTypes[i].i_typ!=0)
427 if((dConvertTypes[i].i_typ==inputType)
428 &&(dConvertTypes[i].o_typ==outputType))
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static void* iiV2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 128 of file ipconv.cc.
ideal idVec2Ideal(poly vec)