Changeset 8c5988 in git


Ignore:
Timestamp:
Apr 20, 2005, 7:25:52 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
d86777372eef84871f10e4887da44dd71b5042b8
Parents:
8c6b3ee65da7c8946b10fbc266f2516b536e2458
Message:
*hannes: const ring


git-svn-id: file:///usr/local/Singular/svn/trunk@7851 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/p_polys.cc

    r8c6b3ee r8c5988  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: p_polys.cc,v 1.1.1.1 2003-10-06 12:15:55 Singular Exp $
     9 *  Version: $Id: p_polys.cc,v 1.2 2005-04-20 17:25:51 Singular Exp $
    1010 *******************************************************************/
    1111
     
    169169* the ordering is compatible with degree, use a->order
    170170*/
    171 inline long _pDeg(poly a, ring r)
     171inline long _pDeg(poly a, const ring r)
    172172{
    173173  p_LmCheckPolyRing(a, r);
     
    176176}
    177177
    178 long pDeg(poly a, ring r)
     178long pDeg(poly a, const ring r)
    179179{
    180180  return _pDeg(a, r);
     
    276276}
    277277
    278 int pWeight(int i, ring r)
     278int pWeight(int i, const ring r)
    279279{
    280280  if ((r->firstwv==NULL) || (i>r->firstBlockEnds))
  • kernel/polys.cc

    r8c6b3ee r8c5988  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.4 2005-01-18 17:28:23 Singular Exp $ */
     4/* $Id: polys.cc,v 1.5 2005-04-20 17:25:52 Singular Exp $ */
    55
    66/*
     
    5050
    5151
    52 void pSetGlobals(ring r, BOOLEAN complete)
     52void pSetGlobals(const ring r, BOOLEAN complete)
    5353{
    5454  int i;
  • kernel/polys.h

    r8c6b3ee r8c5988  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys.h,v 1.4 2005-04-18 14:50:55 Singular Exp $ */
     6/* $Id: polys.h,v 1.5 2005-04-20 17:25:52 Singular Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials of the
     
    275275/*-------------ring management:----------------------*/
    276276//extern void pChangeRing(ring newRing);
    277 extern void pSetGlobals(ring r, BOOLEAN complete = TRUE);
     277extern void pSetGlobals(const ring r, BOOLEAN complete = TRUE);
    278278// resets the pFDeg and pLDeg: if pLDeg is not given, it is
    279279// set to currRing->pLDegOrig, i.e. to the respective LDegProc which
     
    298298extern pLDegProc pLDeg;
    299299extern pFDegProc pFDeg;
    300 int  pWeight(int c, ring r = currRing);
     300int  pWeight(int c, const ring r = currRing);
    301301long pDeg(poly p, ring r = currRing);
    302302long pTotaldegree(poly p, ring r = currRing);
Note: See TracChangeset for help on using the changeset viewer.