Changeset 9d72fe in git for Singular/polys.h


Ignore:
Timestamp:
Aug 24, 2000, 4:42:47 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
d04e5c6da27fdd8c08fbad5b2d62afe127e20d5c
Parents:
30d8a152a104abfe89fae353b5945c3210760945
Message:
* new p_Procs stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@4559 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/polys.h

    r30d8a1 r9d72fe  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys.h,v 1.32 2000-08-14 12:56:46 obachman Exp $ */
     6/* $Id: polys.h,v 1.33 2000-08-24 14:42:45 obachman Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials
     
    124124// frees the space of monomial and frees coefficient
    125125#define pDelete1(m)     _pDelete1(m, currPolyBin)
    126 // deletes the whole polynomial p
    127 #define pDelete(p)      _pDelete(p, currPolyBin)
     126
    128127
    129128// similar to routines above, except that monomials are assumed to be from heap h (resp. are allocated from heap h)
     
    154153
    155154extern  poly pHeadProc(poly p);
    156 // Returns copy of the whole polynomial
    157 #define pCopy(p)        _pCopy(currPolyBin, p)
    158155// Returns copy of the whole poly, new monomials are taken from dest_heap
    159156#define pHeapCopy(dest_heap, p) _pCopy(dest_heap, p)
     
    180177
    181178/*-------------operations on polynomials:------------*/
    182 poly      pAdd(poly p1, poly p2);
    183179poly      pNeg(poly p);
    184180poly      pSub(poly a, poly b);
     
    187183poly      pMultCopyN(poly a, number c);
    188184poly      pPower(poly p, int i);
     185
     186
     187// ----------------- define to enable new p_procs -----*/
     188// #define HAVE_P_PROCS
     189#ifdef HAVE_P_PROCS
     190#include "p_Procs.h"
     191#define pDelete p_Delete
     192#define pCopy   p_Copy
     193#define pAdd    p_Add_q
     194#else
     195// deletes the whole polynomial p
     196#define pDelete(p)      _pDelete(p, currPolyBin)
     197// Returns copy of the whole polynomial
     198#define pCopy(p)        _pCopy(currPolyBin, p)
     199poly      pAdd(poly p1, poly p2);
     200#endif
    189201
    190202// return TRUE, if exponent and component of Lm(p1) and Lm(p2) are equal,
Note: See TracChangeset for help on using the changeset viewer.