source: git/modules/pcv/pcv.mod @ dcafdb

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 
1module="pcv";
2
3version="$Id: pcv.mod,v 1.3 1999-03-31 22:08:13 krueger Exp $";
4info="
5LIBRARY: pcv.so  CONVERSION BETWEEN POLYS AND COEF VECTORS
6AUTHOR:  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
16cxxsource = pcv/pcv.cc
17
18proc int MinDeg(poly) {
19   function=pcvMinDeg;
20}
21
22proc int MaxDeg(poly) {
23   function=pcvMaxDeg;
24}
25
26proc list P2CV(list,int,int) {
27C={
28  /* check if current RingHandle is set */
29  if(currRingHdl == NULL)
30  {
31    WerrorS("no ring active");
32    return TRUE;
33  }
34};
35function=pcvP2CV;
36}
37
38proc list CV2P(list,int,int)
39{
40C={  /* check if current RingHandle is set */
41  if(currRingHdl == NULL)
42  {
43    WerrorS("no ring active");
44    return TRUE;
45  }
46};
47function=pcvCV2P;}
48
49proc int Dim(int,int)
50{
51C = {
52  /* check if current RingHandle is set */
53  if(currRingHdl == NULL)
54  {
55    WerrorS("no ring active");
56    return TRUE;
57  }
58};
59function=pcvDim;
60
61}
62
63proc list Basis(int,int)
64{
65C = {
66  /* check if current RingHandle is set */
67  if(currRingHdl == NULL)
68  {
69    WerrorS("no ring active");
70    return TRUE;
71  }
72};
73function=pcvBasis;}
74
Note: See TracBrowser for help on using the repository browser.