Go to the source code of this file.
◆ iiConvert()
Definition at line 435 of file ipconv.cc.
436{
438 if ((inputType==outputType)
441 {
442 memcpy(output,input,sizeof(*output));
445 }
447 {
449 output->
data=(
char *)(
long)input->
Typ();
450
452 {
454
457 {
460 else
461 {
464 }
465 }
467 {
469 {
471 if (nr!=0)
472 {
474 {
476 }
477 else
478 {
480 sprintf(tmp,
"%c%d",*(
currRing->names[nr-1]),
483 }
484 }
486 {
492 }
493 }
494 }
496 {
498 number n=(number)input->
data;
500 input->
data=(
void*)n;
502 }
503 else
504 {
505
508 }
509 }
514 }
516 {
518
521 {
523 {
524 Print(
"automatic conversion %s -> %s\n",
526 }
529 output->
rtyp=outputType;
531 {
533 }
534 else
535 {
537 }
543 {
545 }
550 {
553 }
555 {
557 while (input->
e!=
NULL)
558 {
562 }
563 }
564
566 }
567 }
569}
void killAll(const ring r)
void CleanUp(ring r=currRing)
static FORCE_INLINE void n_Write(number n, const coeffs r, const BOOLEAN bShortOut=TRUE)
const char * Tok2Cmdname(int tok)
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 omFreeBin(addr, bin)
static int index(p_Length length, p_Ord ord)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define pIsConstant(p)
like above, except that Comp must be 0
#define pGetExp(p, i)
Exponent.
void StringSetS(const char *st)
◆ iiTestConvert()
Definition at line 575 of file ipconv.cc.
576{
577 if ((inputType==outputType)
579 || (outputType==
IDHDL)
581 {
582 return -1;
583 }
584 if (inputType==
UNKNOWN)
return 0;
585
587 return 0;
588
589
590
591
594 {
597 {
598
599
601 }
603 }
604
605
606 return 0;
607}
◆ dConvertTypes