Changeset 1c33e0d in git


Ignore:
Timestamp:
Jul 26, 2008, 6:05:41 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5bc4103ee51a6a028666ee3c666059e950974fb1
Parents:
b9022462e46849623dbd8805f96973d5369e7fb2
Message:
*hannes: p_One


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

Legend:

Unmodified
Added
Removed
  • kernel/p_polys.cc

    rb902246 r1c33e0d  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: p_polys.cc,v 1.13 2008-07-25 14:37:55 Singular Exp $
     9 *  Version: $Id: p_polys.cc,v 1.14 2008-07-26 16:05:41 Singular Exp $
    1010 *******************************************************************/
    1111
     
    966966
    967967/*2
     968* an optimized version of p_ISet for the special case 1
     969*/
     970poly p_One(const ring r);
     971{
     972  poly rc = p_Init(r);
     973  pSetCoeff0(rc,r->cf->nInit(1));
     974  return rc;
     975}
     976
     977/*2
    968978* returns a polynomial representing the number n
    969979* destroys n
  • kernel/polys.h

    rb902246 r1c33e0d  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys.h,v 1.19 2008-07-26 10:04:55 Singular Exp $ */
     6/* $Id: polys.h,v 1.20 2008-07-26 16:05:41 Singular Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials of the
     
    358358#define   pISet(i) p_ISet(i,currRing)
    359359#define   pNSet(n) p_NSet(n,currRing)
    360 //#define   pOne()   pISet(1)
    361 inline poly p_One(const ring r)
    362 {
    363   poly rc = p_Init(r);
    364   pSetCoeff0(rc,r->cf->nInit(1));
    365   return rc;
    366 }
     360
     361poly p_One(const ring r);
    367362#define   pOne()   p_One(currRing)
    368363
Note: See TracChangeset for help on using the changeset viewer.