spielwiese
Last change
on this file since dcafdb was
dcafdb,
checked in by Kai Krüger <krueger@…>, 25 years ago
|
Changes needed for new version of modgen
git-svn-id: file:///usr/local/Singular/svn/trunk@2973 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | module="pcv"; |
---|
2 | |
---|
3 | version="$Id: pcv.mod,v 1.3 1999-03-31 22:08:13 krueger Exp $"; |
---|
4 | info=" |
---|
5 | LIBRARY: pcv.so CONVERSION BETWEEN POLYS AND COEF VECTORS |
---|
6 | AUTHOR: Mathias Schulze, email: mschulze@mathematik.uni-kl.de |
---|
7 | |
---|
8 | MinDeg(p); min deg of monomials of poly p |
---|
9 | MaxDeg(p); max deg of monomials of poly p |
---|
10 | P2CV(l,d0,d1); list of coef vectors from deg d0 to d1 of polys in list l |
---|
11 | CV2P(l,d0,d1); list of polys with coef vectors from deg d0 to d1 in list l |
---|
12 | Dim(d0,d1); number of monomials from deg d0 to d1 |
---|
13 | Basis(d0,d1); list of monomials from deg d0 to d1 |
---|
14 | "; |
---|
15 | |
---|
16 | cxxsource = pcv/pcv.cc |
---|
17 | |
---|
18 | proc int MinDeg(poly) { |
---|
19 | function=pcvMinDeg; |
---|
20 | } |
---|
21 | |
---|
22 | proc int MaxDeg(poly) { |
---|
23 | function=pcvMaxDeg; |
---|
24 | } |
---|
25 | |
---|
26 | proc list P2CV(list,int,int) { |
---|
27 | C={ |
---|
28 | /* check if current RingHandle is set */ |
---|
29 | if(currRingHdl == NULL) |
---|
30 | { |
---|
31 | WerrorS("no ring active"); |
---|
32 | return TRUE; |
---|
33 | } |
---|
34 | }; |
---|
35 | function=pcvP2CV; |
---|
36 | } |
---|
37 | |
---|
38 | proc list CV2P(list,int,int) |
---|
39 | { |
---|
40 | C={ /* check if current RingHandle is set */ |
---|
41 | if(currRingHdl == NULL) |
---|
42 | { |
---|
43 | WerrorS("no ring active"); |
---|
44 | return TRUE; |
---|
45 | } |
---|
46 | }; |
---|
47 | function=pcvCV2P;} |
---|
48 | |
---|
49 | proc int Dim(int,int) |
---|
50 | { |
---|
51 | C = { |
---|
52 | /* check if current RingHandle is set */ |
---|
53 | if(currRingHdl == NULL) |
---|
54 | { |
---|
55 | WerrorS("no ring active"); |
---|
56 | return TRUE; |
---|
57 | } |
---|
58 | }; |
---|
59 | function=pcvDim; |
---|
60 | |
---|
61 | } |
---|
62 | |
---|
63 | proc list Basis(int,int) |
---|
64 | { |
---|
65 | C = { |
---|
66 | /* check if current RingHandle is set */ |
---|
67 | if(currRingHdl == NULL) |
---|
68 | { |
---|
69 | WerrorS("no ring active"); |
---|
70 | return TRUE; |
---|
71 | } |
---|
72 | }; |
---|
73 | function=pcvBasis;} |
---|
74 | |
---|
Note: See
TracBrowser
for help on using the repository browser.