1 | /**************************************** |
---|
2 | * Computer Algebra System SINGULAR * |
---|
3 | ****************************************/ |
---|
4 | /* $Id: prCopy.h,v 1.2 2009-06-05 05:16:07 motsak Exp $ */ |
---|
5 | /* |
---|
6 | * ABSTRACT - declarations of functions for Copy/Move/Delete for Polys |
---|
7 | */ |
---|
8 | |
---|
9 | |
---|
10 | /************************************************************************* |
---|
11 | * |
---|
12 | * MoveR, CopyR, ShallowCopyR: operations to get ideals/polys |
---|
13 | * from source_r to dest_r where |
---|
14 | * - Coeff(source_r) == Coeff(dest_r) |
---|
15 | * - dest_r->N <= source_r->N |
---|
16 | * Move: input is destroyed |
---|
17 | * ShallowCopy: monomials are copied, coeffs are set |
---|
18 | * Copy: monomials and coeffs are copied |
---|
19 | * |
---|
20 | ************************************************************************/ |
---|
21 | poly prMoveR_NoSort(poly &p, ring r, ring dest_r = currRing); |
---|
22 | poly prMoveR(poly &p, ring r, ring dest_r = currRing); |
---|
23 | poly prCopyR_NoSort(poly p, ring r, ring dest_r = currRing); |
---|
24 | poly prCopyR(poly p, ring r, ring dest_r = currRing); |
---|
25 | poly prShallowCopyR_NoSort(poly p, ring r, ring dest_t = currRing); |
---|
26 | poly prShallowCopyR(poly p, ring r, ring dest_t = currRing); |
---|
27 | poly prHeadR(poly p, ring r, ring dest_r = currRing); |
---|
28 | |
---|
29 | ideal idrMoveR_NoSort(ideal &id, ring r, ring dest_r = currRing); |
---|
30 | ideal idrMoveR(ideal &id, ring r, ring dest_r = currRing); |
---|
31 | |
---|
32 | ideal idrCopyR_NoSort(ideal id, ring r, ring dest_r = currRing); |
---|
33 | ideal idrCopyR(ideal id, ring r, ring dest_r = currRing); |
---|
34 | |
---|
35 | ideal idrShallowCopyR_NoSort(ideal id, ring r, ring dest_r = currRing); |
---|
36 | ideal idrShallowCopyR(ideal id, ring r, ring dest_r = currRing); |
---|
37 | |
---|
38 | |
---|
39 | /// Copy leading terms of id[i] via prHeeadR into dest_r |
---|
40 | ideal idrHeadR(ideal id, ring r, ring dest_r = currRing); |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|