Go to the source code of this file.
|
| int | lSize (lists L) |
| |
| lists | lCopy (lists L) |
| |
| BOOLEAN | lAdd (leftv res, leftv u, leftv v) |
| |
| lists | lInsert0 (lists ul, leftv v, int pos) |
| |
| BOOLEAN | lInsert (leftv res, leftv u, leftv v) |
| |
| BOOLEAN | lInsert3 (leftv res, leftv u, leftv v, leftv w) |
| |
| BOOLEAN | lAppend (leftv res, leftv u, leftv v) |
| |
| BOOLEAN | lDelete (leftv res, leftv u, leftv v) |
| |
| BOOLEAN | lRingDependend (lists L) |
| |
| lists | liMakeResolv (resolvente r, int length, int reallen, int typ0, intvec **weights, int add_row_shift) |
| |
| resolvente | liFindRes (lists L, int *len, int *typ0, intvec ***weights) |
| |
| char * | lString (lists l, BOOLEAN typed, int dim) |
| |
Definition at line 51 of file lists.cc.
59 for(i=0;i<=ul->
nr;i++)
65 for(i=0;i<=vl->
nr;i++)
77 memset(u,0,
sizeof(*u));
78 memset(v,0,
sizeof(*v));
79 res->
data = (
char *)l;
Class used for (list of) interpreter objects.
#define omFreeSize(addr, size)
INLINE_THIS void Init(int l=0)
#define omFreeBin(addr, bin)
Definition at line 151 of file lists.cc.
lists lInsert0(lists ul, leftv v, int pos)
Definition at line 32 of file lists.cc.
const CanonicalForm CFMap CFMap int &both_non_zero int n
const CanonicalForm CFMap CFMap & N
INLINE_THIS void Init(int l=0)
Definition at line 161 of file lists.cc.
164 int VIndex=(
int)(
long)v->
Data()-1;
165 int EndIndex=
lSize(ul);
167 if((0<=VIndex)&&(VIndex<=ul->nr))
172 l->
Init(EndIndex+(VIndex>EndIndex));
174 for(i=j=0;i<=EndIndex;i++,j++)
179 memset(&ul->
m[i],0,
sizeof(ul->
m[i]));
189 res->
data = (
char *)l;
192 Werror(
"wrong index %d in list(%d)",VIndex+1,ul->
nr+1);
const const intvec const intvec const ring _currRing const const intvec const intvec const ring _currRing int
Class used for (list of) interpreter objects.
#define omFreeSize(addr, size)
INLINE_THIS void Init(int l=0)
void CleanUp(ring r=currRing)
#define omFreeBin(addr, bin)
void Werror(const char *fmt,...)
Definition at line 313 of file lists.cc.
334 Werror(
"element %d is not of type module",i+1);
340 if ((i>0) && (
idIs0(r[i-1])))
356 while ((j<i) && hom_complex)
358 hom_complex = hom_complex && (w[
i]!=
NULL);
361 if ((!hom_complex) || (weights==
NULL))
365 if (w[j]!=
NULL)
delete w[
j];
#define omFreeSize(addr, size)
intvec * ivCopy(const intvec *o)
void WerrorS(const char *s)
void * atGet(idhdl root, const char *name, int t, void *defaultReturnValue)
void Werror(const char *fmt,...)
Definition at line 216 of file lists.cc.
227 int oldlength=length;
228 while (
r[length-1]==
NULL) length--;
229 if (reallen<=0) reallen=
currRing->N;
230 reallen=
si_max(reallen,length);
242 while ((j>0) && (
r[0]->
m[j]==
NULL)) j--;
266 if ((weights!=
NULL) && (weights[
i]!=
NULL))
269 (*w) += add_row_shift;
278 Warn(
"internal NULL in resolvente");
ideal id_FreeModule(int i, const ring r)
void atSet(idhdl root, const char *name, void *data, int typ)
#define omFreeSize(addr, size)
intvec * ivCopy(const intvec *o)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
long id_RankFreeModule(ideal s, ring lmRing, ring tailRing)
ideal idFreeModule(int i, const ring R=currRing)
void idDelete(ideal *h, ring r=currRing)
delete an ideal
static int si_max(const int a, const int b)
void idSkipZeroes(ideal ide)
INLINE_THIS void Init(int l=0)
ideal idInit(int idsize, int rank)
void pEnlargeSet(poly **p, int l, int increment)
Definition at line 120 of file lists.cc.
lists lInsert0(lists ul, leftv v, int pos)
const char * Tok2Cmdname(int tok)
void Werror(const char *fmt,...)
Definition at line 87 of file lists.cc.
95 for(i=j=0;i<=ul->
nr;i++,j++)
100 for(j=ul->
nr+1;j<pos;j++)
Class used for (list of) interpreter objects.
#define omFreeSize(addr, size)
static int si_max(const int a, const int b)
INLINE_THIS void Init(int l=0)
#define omFreeBin(addr, bin)
Definition at line 135 of file lists.cc.
141 Werror(
"cannot insert type `%s` at pos. %d",
lists lInsert0(lists ul, leftv v, int pos)
const char * Tok2Cmdname(int tok)
void Werror(const char *fmt,...)
Definition at line 199 of file lists.cc.
206 && (BEGIN_RING<L->
m[i].rtyp)
BOOLEAN lRingDependend(lists L)
Definition at line 25 of file lists.cc.
const CanonicalForm CFMap CFMap int &both_non_zero int n
Definition at line 377 of file lists.cc.
381 if (typed)
return omStrDup(
"list()");
385 char** slist = (
char**)
omAlloc((l->
nr+1) *
sizeof(
char*));
388 for (i=0, j = 0, k = 0; i<=l->
nr; i++)
393 if (*(slist[i]) !=
'\0')
395 j += strlen(slist[i]);
399 s = (
char*)
omAlloc(j+k+2+(typed ? 10 : 0) + (
dim == 2 ? k : 0));
406 for (i=0; i<=l->
nr; i++)
408 if (*(slist[i]) !=
'\0')
412 if (
dim == 2) strcat(s,
"\n");
417 if (k > 0) s[strlen(s) - (
dim == 2 ? 2 : 1)] =
'\0';
418 if (typed) strcat(s,
")");
const CanonicalForm int s
#define omFreeSize(addr, size)
char * String(void *d=NULL, BOOLEAN typed=FALSE, int dim=1)
Called for conversion to string (used by string(..), write(..),..)
#define omCheckAddr(addr)