Go to the source code of this file.
◆ iiConvert()
Definition at line 401 of file ipconv.cc.
403 memset(output,0,
sizeof(
sleftv));
404 if ((inputType==outputType)
408 memcpy(output,input,
sizeof(*output));
409 memset(input,0,
sizeof(*input));
415 output->
data=(
char *)(
long)input->
Typ();
446 sprintf(tmp,
"%c%d",*(
currRing->names[nr-1]),
464 number n=(number)input->
data;
466 input->
data=(
void*)n;
473 memset(input,0,
sizeof(*input));
489 Print(
"automatic conversion %s -> %s\n",
494 output->
rtyp=outputType;
Class used for (list of) interpreter objects.
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 ...
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)
◆ iiTestConvert()
Definition at line 525 of file ipconv.cc.
527 if ((inputType==outputType)
529 || (outputType==
IDHDL)
534 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 ...