 |
My Project
UNKNOWN_GIT_VERSION
|
Go to the documentation of this file.
33 typedef void * (*iiConvertProc)(
void * data);
47 poly
p=
pISet((
int)(
long)data);
75 poly
p=
pISet((
int)(
long)data);
98 I->m[0]=
pISet((
int)(
long)data);
175 static void *
iiN2P(
void *data);
196 int s=(int)(
long)data;
203 number n=
nInit((
int)(
long)data);
214 static void * iiI2NN(
void *data)
218 WerrorS(
"missing basering while converting int to Number");
221 number n=
nInit((
int)(
long)data);
222 number2 nn=(number2)
omAlloc(
sizeof(*nn));
227 static void * iiI2CP(
void *data)
231 WerrorS(
"missing basering while converting int to Poly");
234 poly n=
pISet((
int)(
long)data);
235 poly2 nn=(poly2)
omAlloc(
sizeof(*nn));
257 static void * iiBI2NN(
void *data)
261 WerrorS(
"missing basering while converting bigint to Number");
272 number2 nn=(number2)
omAlloc(
sizeof(*nn));
277 static void * iiBI2CP(
void *data)
281 WerrorS(
"missing basering while converting bigint to Poly");
292 poly2 nn=(poly2)
omAlloc(
sizeof(*nn));
297 static void * iiP2CP(
void *data)
299 poly2 nn=(poly2)
omAlloc(
sizeof(*nn));
307 static void * iiNN2N(
void *data)
309 number2 d=(number2)data;
313 WerrorS(
"cannot convert: incompatible");
316 number n =
n_Copy(d->n, d->cf);
323 static void * iiNN2P(
void *data)
325 number2 d=(number2)data;
329 WerrorS(
"cannot convert: incompatible");
332 number n =
n_Copy(d->n, d->cf);
382 poly
p=
pNSet((number)data);
402 int add_row_shift = 0;
404 if (weights!=
NULL) add_row_shift=weights->
min_in();
430 #define NULL_VAL NULL
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)
578 if ((inputType==outputType)
580 || (outputType==
IDHDL)
585 if (inputType==
UNKNOWN)
return 0;
BOOLEAN iiConvert(int inputType, int outputType, int index, leftv input, leftv output, const struct sConvertTypes *dConvertTypes)
static void * iiBu2Id(void *data)
static ideal idVec2Ideal(poly vec)
#define pIsConstant(p)
like above, except that Comp might be != 0
void killAll(const ring r)
#define pGetComp(p)
Component.
static void * iiBI2N(void *data)
static void * iiN2P(void *data)
static void * iiBI2V(void *data)
ideal id_Matrix2Module(matrix mat, const ring R)
converts mat to module, destroys mat
static void iiL2R(leftv out, leftv in)
static void * iiI2V(void *data)
#define MATELEM(mat, i, j)
void sBucketDestroyAdd(sBucket_pt bucket, poly *p, int *length)
#define pGetExp(p, i)
Exponent.
static void * iiP2Id(void *data)
int iiTestConvert(int inputType, int outputType, const struct sConvertTypes *dConvertTypes)
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
static void * iiV2Ma(void *data)
static void * iiMa2Mo(void *data)
Class used for (list of) interpreter objects.
static void iiBu2P(leftv out, leftv in)
static void * iiIm2Bim(void *data)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static void iiR2L_l(leftv out, leftv in)
intvec * ivCopy(const intvec *o)
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
static FORCE_INLINE void n_Write(number n, const coeffs r, const BOOLEAN bShortOut=TRUE)
syStrategy syConvList(lists li)
static void * iiP2V(void *data)
static void * iiI2P(void *data)
BOOLEAN slInit(si_link l, char *istr)
static void * iiI2N(void *data)
static void * iiDummy(void *data)
matrix id_Module2Matrix(ideal mod, const ring R)
void atSet(idhdl root, char *name, void *data, int typ)
static void * iiS2Link(void *data)
static void * iiBu2V(void *data)
static FORCE_INLINE number n_Init(long i, const coeffs r)
a number representing i in the given coeff field/ring r
static void * iiMo2Ma(void *data)
void CleanUp(ring r=currRing)
matrix mpNew(int r, int c)
create a r x c zero-matrix
#define IMATELEM(M, I, J)
void StringSetS(const char *st)
static void * iiI2Id(void *data)
void *(* iiConvertProc)(void *data)
poly p_NSet(number n, const ring r)
returns the poly representing the number n, destroys n
void * atGet(idhdl root, const char *name, int t, void *defaultReturnValue)
void Werror(const char *fmt,...)
ideal idInit(int idsize, int rank)
initialise an ideal / module
static FORCE_INLINE number n_Copy(number n, const coeffs r)
return a copy of 'n'
void WerrorS(const char *s)
static FORCE_INLINE char * nCoeffName(const coeffs cf)
static void * iiI2Iv(void *data)
static void * iiBI2Id(void *data)
void(* iiConvertProcL)(leftv out, leftv in)
static void * iiIm2Ma(void *data)
const struct sConvertTypes dConvertTypes[]
static void * iiBI2P(void *data)
const CanonicalForm int s
const char * Tok2Cmdname(int tok)
static void * iiN2Ma(void *data)
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 void * iiI2BI(void *data)
static number & pGetCoeff(poly p)
return an alias to the leading coefficient of p assumes that p != NULL NOTE: not copy
lists syConvRes(syStrategy syzstr, BOOLEAN toDel, int add_row_shift)
#define omFreeBin(addr, bin)
bigintmat * iv2bim(intvec *b, const coeffs C)
static int index(p_Length length, p_Ord ord)