spielwiese
Last change
on this file since 341696 was
341696,
checked in by Hans Schönemann <hannes@…>, 14 years ago
|
Adding Id property to all files
git-svn-id: file:///usr/local/Singular/svn/trunk@12231 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[5c8d0fb] | 1 | %{ |
---|
| 2 | /* |
---|
[341696] | 3 | * $Id$ |
---|
[5c8d0fb] | 4 | * |
---|
| 5 | * Test mod fuer modgen |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <stdio.h> |
---|
| 9 | #include "Pcv.h" |
---|
| 10 | %} |
---|
| 11 | |
---|
| 12 | |
---|
[dbd017] | 13 | // module="pcv"; |
---|
| 14 | package="pcv"; |
---|
[a47187] | 15 | |
---|
[341696] | 16 | version="$Id$"; |
---|
[a47187] | 17 | info=" |
---|
| 18 | LIBRARY: pcv.so CONVERSION BETWEEN POLYS AND COEF VECTORS |
---|
[f42bbc7] | 19 | AUTHOR: Mathias Schulze, email: mschulze@mathematik.uni-kl.de |
---|
[a47187] | 20 | |
---|
| 21 | MinDeg(p); min deg of monomials of poly p |
---|
| 22 | P2CV(l,d0,d1); list of coef vectors from deg d0 to d1 of polys in list l |
---|
| 23 | CV2P(l,d0,d1); list of polys with coef vectors from deg d0 to d1 in list l |
---|
| 24 | Dim(d0,d1); number of monomials from deg d0 to d1 |
---|
| 25 | Basis(d0,d1); list of monomials from deg d0 to d1 |
---|
| 26 | "; |
---|
| 27 | |
---|
[5c8d0fb] | 28 | cxxsource = Pcv.cc; |
---|
[a47187] | 29 | |
---|
[dbd017] | 30 | %procedures |
---|
| 31 | |
---|
[dcafdb] | 32 | |
---|
[5c8d0fb] | 33 | int MinDeg(poly p) { |
---|
| 34 | %declaration; |
---|
| 35 | %typecheck; |
---|
[bfe96e] | 36 | %return(pcvMinDeg(p)); |
---|
[dcafdb] | 37 | } |
---|
| 38 | |
---|
[5c8d0fb] | 39 | list P2CV(list pl,int d0,int d1) { |
---|
| 40 | %declaration; |
---|
| 41 | |
---|
[dcafdb] | 42 | /* check if current RingHandle is set */ |
---|
| 43 | if(currRingHdl == NULL) |
---|
| 44 | { |
---|
| 45 | WerrorS("no ring active"); |
---|
| 46 | return TRUE; |
---|
| 47 | } |
---|
[5c8d0fb] | 48 | |
---|
| 49 | %typecheck; |
---|
[bfe96e] | 50 | %return(pcvP2CV(pl, d0, d1)); |
---|
[dcafdb] | 51 | } |
---|
| 52 | |
---|
[5c8d0fb] | 53 | list CV2P(list pl,int d0,int d1) |
---|
[dcafdb] | 54 | { |
---|
[5c8d0fb] | 55 | %declaration; |
---|
| 56 | |
---|
| 57 | /* check if current RingHandle is set */ |
---|
[dcafdb] | 58 | if(currRingHdl == NULL) |
---|
| 59 | { |
---|
| 60 | WerrorS("no ring active"); |
---|
| 61 | return TRUE; |
---|
| 62 | } |
---|
[5c8d0fb] | 63 | |
---|
| 64 | %typecheck; |
---|
[bfe96e] | 65 | %return(pcvCV2P(pl, d0, d1)); |
---|
[5c8d0fb] | 66 | } |
---|
[dcafdb] | 67 | |
---|
[5c8d0fb] | 68 | int Dim(int d0,int d1) |
---|
[dcafdb] | 69 | { |
---|
[5c8d0fb] | 70 | %declaration; |
---|
| 71 | |
---|
[dcafdb] | 72 | /* check if current RingHandle is set */ |
---|
| 73 | if(currRingHdl == NULL) |
---|
| 74 | { |
---|
| 75 | WerrorS("no ring active"); |
---|
| 76 | return TRUE; |
---|
| 77 | } |
---|
[5c8d0fb] | 78 | |
---|
| 79 | %typecheck; |
---|
| 80 | %return(pcvDim); |
---|
[dcafdb] | 81 | } |
---|
| 82 | |
---|
[5c8d0fb] | 83 | list Basis(int d0,int d1) |
---|
[dcafdb] | 84 | { |
---|
[5c8d0fb] | 85 | %declaration; |
---|
| 86 | |
---|
[dcafdb] | 87 | /* check if current RingHandle is set */ |
---|
| 88 | if(currRingHdl == NULL) |
---|
| 89 | { |
---|
| 90 | WerrorS("no ring active"); |
---|
| 91 | return TRUE; |
---|
| 92 | } |
---|
[5c8d0fb] | 93 | |
---|
| 94 | %typecheck; |
---|
| 95 | %return(pcvBasis); |
---|
| 96 | } |
---|
[dcafdb] | 97 | |
---|
[dbd017] | 98 | // %% |
---|
| 99 | |
---|
Note: See
TracBrowser
for help on using the repository browser.