source: git/Singular/prCopy.h @ 6e56de

spielwiese
Last change on this file since 6e56de was 416465, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* bug-fixes from work with Thomas git-svn-id: file:///usr/local/Singular/svn/trunk@3826 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/* $Id: prCopy.h,v 1.1 1999-11-15 17:20:42 obachman Exp $ */
5/*
6* ABSTRACT - declarations of functions for Copy/Move/Delete for Polys
7*/
8
9
10/*************************************************************************
11 *
12 * MoveR, CopyR, DeleteR, HeadR, SortR
13 * Assume: ideal/poly from ring r
14 *         Coef(r) == Coef(currRing)
15 * Move, Delete: input object is destroyed and set to NULL
16 *
17 * Sort: revert == TRUE is faster for polys which are almost sorted correctly
18 *
19 ************************************************************************/
20poly prMoveR_NoSort(poly &p, ring r);
21poly prMoveR(poly &p, ring r);
22poly prCopyR_NoSort(poly p, ring r);
23poly prCopyR(poly p, ring r);
24poly prHeadR(poly p, ring r);
25void prDeleteR(poly &p, ring r);
26poly prSortR(poly p, ring r, BOOLEAN revert = TRUE);
27poly prMergeR(poly p1, poly p2, ring r);
28
29ideal idrMoveR_NoSort(ideal &id, ring r);
30ideal idrMoveR(ideal &id, ring r);
31ideal idrCopyR_NoSort(ideal id, ring r);
32ideal idrCopyR(ideal id, ring r);
33ideal idrHeadR(ideal id, ring r);
34void  idrDeleteR(ideal &id, ring r);
35
36/*************************************************************************
37 *
38 * Copy, Delete, Sort
39 *
40 *************************************************************************/
41
42inline poly pSort(poly p, BOOLEAN revert = TRUE)
43{
44  return prSortR(p, currRing, revert);
45}
46
47inline poly pMerge(poly p1, poly p2)
48{
49  return prMergeR(p1, p2, currRing);
50}
51
52/*************************************************************************
53 *
54 * Specialized sort routines
55 *
56 *************************************************************************/
57// TBC:
58// Assume: If considerd only as poly in any component of p
59// (say, monomials of other components of p are set to 0),
60// then p is already sorted correctly
61#define pSortCompCorrect(p) pSort(p, TRUE)
62
63
Note: See TracBrowser for help on using the repository browser.