Go to the source code of this file.
◆ iiConvert()
Definition at line 436 of file ipconv.cc.
438 memset(output,0,
sizeof(
sleftv));
439 if ((inputType==outputType)
443 memcpy(output,input,
sizeof(*output));
444 memset(input,0,
sizeof(*input));
450 output->
data=(
char *)(
long)input->
Typ();
481 sprintf(tmp,
"%c%d",*(
currRing->names[nr-1]),
499 number n=(number)input->
data;
501 input->
data=(
void*)n;
525 Print(
"automatic conversion %s -> %s\n",
530 output->
rtyp=outputType;
558 while (input->
e!=
NULL)
Class used for (list of) interpreter objects.
void killAll(const ring r)
const struct sConvertTypes dConvertTypes[]
static number & pGetCoeff(poly p)
return an alias to the leading coefficient of p assumes that p != NULL NOTE: not copy
#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)
void CleanUp(ring r=currRing)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define omFreeBin(addr, bin)
◆ iiTestConvert()
Definition at line 576 of file ipconv.cc.
578 if ((inputType==outputType)
580 || (outputType==
IDHDL)
585 if (inputType==
UNKNOWN)
return 0;
const struct sConvertTypes dConvertTypes[]
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...