Changeset a88544 in git


Ignore:
Timestamp:
Jul 26, 2008, 12:04:55 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e5dcf2e9b0937447ac576a41bc6bf66d961d5419
Parents:
eacd64ccb21811d46e2c3e1f042a74e36c3b0abf
Message:
*hannes: inline pOne


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

Legend:

Unmodified
Added
Removed
  • kernel/polys.h

    reacd64 ra88544  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys.h,v 1.18 2008-07-26 09:40:41 Singular Exp $ */
     6/* $Id: polys.h,v 1.19 2008-07-26 10:04:55 Singular Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials of the
     
    359359#define   pNSet(n) p_NSet(n,currRing)
    360360//#define   pOne()   pISet(1)
    361 inline poly pOne()
     361inline poly p_One(const ring r)
    362362{
    363   poly rc = pInit();
    364   pSetCoeff0(rc,nInit(1));
     363  poly rc = p_Init(r);
     364  pSetCoeff0(rc,r->cf->nInit(1));
    365365  return rc;
    366366}
     367#define   pOne()   p_One(currRing)
    367368
    368369void      pContent(poly p);
Note: See TracChangeset for help on using the changeset viewer.