My Project
Loading...
Searching...
No Matches
Singular
denom_list.cc
Go to the documentation of this file.
1
2
3
4
#include "
kernel/mod2.h
"
5
#include "
kernel/GBEngine/kutil.h
"
6
#include "
Singular/lists.h
"
7
8
lists
get_denom_list
()
9
{
10
int
size
;
11
denominator_list
d =
DENOMINATOR_LIST
;
12
size
=0;
13
while
(d!=
NULL
)
14
{
15
size
++;
16
d=d->
next
;
17
}
18
lists
l
=(
lists
)
omAlloc
(
sizeof
(*
l
));
19
l
->Init(
size
);
20
d=
DENOMINATOR_LIST
;
21
for
(
int
i
=0;
i
<
size
;
i
++)
22
{
23
l
->m[
i
].rtyp=
NUMBER_CMD
;
24
l
->m[
i
].data=d->
n
;
25
d=d->
next
;
26
omFree
(
DENOMINATOR_LIST
);
27
DENOMINATOR_LIST
=d;
28
}
29
return
l
;
30
}
size
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition:
cf_ops.cc:600
l
int l
Definition:
cfEzgcd.cc:100
i
int i
Definition:
cfEzgcd.cc:132
slists
Definition:
lists.h:24
get_denom_list
lists get_denom_list()
Definition:
denom_list.cc:8
NUMBER_CMD
@ NUMBER_CMD
Definition:
grammar.cc:288
DENOMINATOR_LIST
VAR denominator_list DENOMINATOR_LIST
Definition:
kutil.cc:84
kutil.h
denominator_list_s::n
number n
Definition:
kutil.h:65
denominator_list_s::next
denominator_list next
Definition:
kutil.h:65
denominator_list_s
Definition:
kutil.h:65
lists.h
mod2.h
lists
slists * lists
Definition:
mpr_numeric.h:146
omAlloc
#define omAlloc(size)
Definition:
omAllocDecl.h:210
omFree
#define omFree(addr)
Definition:
omAllocDecl.h:261
NULL
#define NULL
Definition:
omList.c:12
Generated on Mon Feb 27 2023 10:53:49 for My Project by
doxygen 1.9.5
for
Singular