Go to the source code of this file.
§ sConvertTypes
§ IPCONV
§ NULL_VAL
§ iiConvertProc
typedef void*(* iiConvertProc) (void *data) |
§ iiConvertProcL
typedef void(* iiConvertProcL) (leftv out, leftv in) |
§ iiBI2Id()
static void* iiBI2Id |
( |
void * |
data | ) |
|
|
static |
Definition at line 94 of file ipconv.cc.
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,...)
§ iiBI2N()
static void* iiBI2N |
( |
void * |
data | ) |
|
|
static |
Definition at line 194 of file ipconv.cc.
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,...)
§ iiBI2NN()
static void* iiBI2NN |
( |
void * |
data | ) |
|
|
static |
Definition at line 209 of file ipconv.cc.
213 WerrorS(
"missing basering while converting bigint to Number");
224 number2 nn=(number2)
omAlloc(
sizeof*nn);
void WerrorS(const char *s)
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'
void Werror(const char *fmt,...)
§ iiBI2P()
static void* iiBI2P |
( |
void * |
data | ) |
|
|
static |
Definition at line 51 of file ipconv.cc.
poly p_NSet(number n, const ring r)
returns the poly representing the number n, destroys 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,...)
§ iiBI2V()
static void* iiBI2V |
( |
void * |
data | ) |
|
|
static |
Definition at line 72 of file ipconv.cc.
poly p_NSet(number n, const ring r)
returns the poly representing the number n, destroys 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,...)
§ iiConvert()
Definition at line 360 of file ipconv.cc.
362 memset(output,0,
sizeof(
sleftv));
363 if ((inputType==outputType)
367 memcpy(output,input,
sizeof(*output));
368 memset(input,0,
sizeof(*input));
374 output->
data=(
char *)(
long)input->
Typ();
405 sprintf(tmp,
"%c%d",*(
currRing->names[nr-1]),
423 number n=(number)input->
data;
425 input->
data=(
void*)n;
432 memset(input,0,
sizeof(*input));
443 if((dConvertTypes[
index].i_typ==inputType)
444 &&(dConvertTypes[
index].o_typ==outputType))
448 Print(
"automatic conversion %s -> %s\n",
453 output->
rtyp=outputType;
460 dConvertTypes[
index].
pl(output,input);
Class used for (list of) interpreter objects.
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)
§ iiDummy()
static void* iiDummy |
( |
void * |
data | ) |
|
|
static |
§ iiI2BI()
static void* iiI2BI |
( |
void * |
data | ) |
|
|
static |
Definition at line 172 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
§ iiI2Id()
static void* iiI2Id |
( |
void * |
data | ) |
|
|
static |
Definition at line 87 of file ipconv.cc.
90 I->m[0]=
pISet((
int)(
long)data);
ideal idInit(int idsize, int rank)
initialise an ideal / module
§ iiI2Iv()
static void* iiI2Iv |
( |
void * |
data | ) |
|
|
static |
Definition at line 159 of file ipconv.cc.
161 int s=(int)(
long)data;
const CanonicalForm int s
§ iiI2N()
static void* iiI2N |
( |
void * |
data | ) |
|
|
static |
§ iiI2NN()
static void* iiI2NN |
( |
void * |
data | ) |
|
|
static |
Definition at line 179 of file ipconv.cc.
183 WerrorS(
"missing basering while converting int to Number");
186 number n=
nInit((
int)(
long)data);
187 number2 nn=(number2)
omAlloc(
sizeof*nn);
void WerrorS(const char *s)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
§ iiI2P()
static void* iiI2P |
( |
void * |
data | ) |
|
|
static |
§ iiI2V()
static void* iiI2V |
( |
void * |
data | ) |
|
|
static |
§ iiIm2Bim()
static void* iiIm2Bim |
( |
void * |
data | ) |
|
|
static |
Definition at line 279 of file ipconv.cc.
bigintmat * iv2bim(intvec *b, const coeffs C)
§ iiIm2Ma()
static void* iiIm2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 262 of file ipconv.cc.
268 for (i=iv->
rows(); i>0; i--)
270 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)
§ iiL2R()
Definition at line 335 of file ipconv.cc.
337 int add_row_shift = 0;
void atSet(idhdl root, const char *name, void *data, int typ)
intvec * ivCopy(const intvec *o)
syStrategy syConvList(lists li)
void * atGet(idhdl root, const char *name, int t, void *defaultReturnValue)
§ iiMa2Mo()
static void* iiMa2Mo |
( |
void * |
data | ) |
|
|
static |
Definition at line 153 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)
§ iiMo2Ma()
static void* iiMo2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 147 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)
§ iiN2Ma()
static void* iiN2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 301 of file ipconv.cc.
ideal idInit(int idsize, int rank)
initialise an ideal / module
§ iiN2P()
static void * iiN2P |
( |
void * |
data | ) |
|
|
static |
§ iiNN2N()
static void* iiNN2N |
( |
void * |
data | ) |
|
|
static |
Definition at line 231 of file ipconv.cc.
233 number2 d=(number2)data;
237 WerrorS(
"cannot convert: incompatible");
240 number n =
n_Copy(d->n, d->cf);
void n2Delete(number2 &d)
void WerrorS(const char *s)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static FORCE_INLINE number n_Copy(number n, const coeffs r)
return a copy of 'n'
§ iiNN2P()
static void* iiNN2P |
( |
void * |
data | ) |
|
|
static |
Definition at line 247 of file ipconv.cc.
249 number2 d=(number2)data;
253 WerrorS(
"cannot convert: incompatible");
256 number n =
n_Copy(d->n, d->cf);
poly p_NSet(number n, const ring r)
returns the poly representing the number n, destroys n
void n2Delete(number2 &d)
void WerrorS(const char *s)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static FORCE_INLINE number n_Copy(number n, const coeffs r)
return a copy of 'n'
§ iiP2Id()
static void* iiP2Id |
( |
void * |
data | ) |
|
|
static |
Definition at line 116 of file ipconv.cc.
#define pGetComp(p)
Component.
ideal idInit(int idsize, int rank)
initialise an ideal / module
§ iiP2V()
static void* iiP2V |
( |
void * |
data | ) |
|
|
static |
§ iiR2L_l()
Definition at line 324 of file ipconv.cc.
326 int add_row_shift = 0;
328 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)
§ iiS2Link()
static void* iiS2Link |
( |
void * |
data | ) |
|
|
static |
Definition at line 316 of file ipconv.cc.
BOOLEAN slInit(si_link l, char *istr)
§ iiTestConvert()
int iiTestConvert |
( |
int |
inputType, |
|
|
int |
outputType, |
|
|
const struct sConvertTypes * |
dConvertTypes |
|
) |
| |
Definition at line 484 of file ipconv.cc.
486 if ((inputType==outputType)
488 || (outputType==
IDHDL)
493 if (inputType==
UNKNOWN)
return 0;
502 while (dConvertTypes[i].i_typ!=0)
504 if((dConvertTypes[i].i_typ==inputType)
505 &&(dConvertTypes[i].o_typ==outputType))
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
§ iiV2Ma()
static void* iiV2Ma |
( |
void * |
data | ) |
|
|
static |
Definition at line 129 of file ipconv.cc.
static ideal idVec2Ideal(poly vec)