Changeset 2f436b in git for Singular/prCopy.h
- Timestamp:
- Dec 31, 2000, 4:14:47 PM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e609098c45a74ac91c002ffa7ece5eebe7f8c002
- Parents:
- 33ec1145a109507ad3e3cf4a69a847b703358e93
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/prCopy.h
r33ec11 r2f436b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: prCopy.h,v 1. 1 1999-11-15 17:20:42obachman Exp $ */4 /* $Id: prCopy.h,v 1.2 2000-12-31 15:14:43 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - declarations of functions for Copy/Move/Delete for Polys … … 12 12 * MoveR, CopyR, DeleteR, HeadR, SortR 13 13 * Assume: ideal/poly from ring r 14 * Coef (r) == Coef(currRing)14 * Coeff(r) == Coeff(currRing) 15 15 * Move, Delete: input object is destroyed and set to NULL 16 16 * 17 * Sort: revert == TRUE is faster for polys which are almost sorted correctly18 17 * 19 18 ************************************************************************/ … … 23 22 poly prCopyR(poly p, ring r); 24 23 poly prHeadR(poly p, ring r); 25 void prDeleteR(poly &p, ring r);26 poly prSortR(poly p, ring r, BOOLEAN revert = TRUE);27 poly prMergeR(poly p1, poly p2, ring r);28 24 29 25 ideal idrMoveR_NoSort(ideal &id, ring r); … … 32 28 ideal idrCopyR(ideal id, ring r); 33 29 ideal idrHeadR(ideal id, ring r); 34 void idrDeleteR(ideal &id, ring r);35 36 /*************************************************************************37 *38 * Copy, Delete, Sort39 *40 *************************************************************************/41 42 inline poly pSort(poly p, BOOLEAN revert = TRUE)43 {44 return prSortR(p, currRing, revert);45 }46 47 inline poly pMerge(poly p1, poly p2)48 {49 return prMergeR(p1, p2, currRing);50 }51 52 /*************************************************************************53 *54 * Specialized sort routines55 *56 *************************************************************************/57 // TBC:58 // Assume: If considerd only as poly in any component of p59 // (say, monomials of other components of p are set to 0),60 // then p is already sorted correctly61 #define pSortCompCorrect(p) pSort(p, TRUE)62 30 63 31 32 33
Note: See TracChangeset
for help on using the changeset viewer.