Changeset a81a22 in git


Ignore:
Timestamp:
Jul 15, 2005, 1:58:24 PM (18 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
26620d841aad6a1ce3ba68c3114ee40ccffe0576
Parents:
0012cd4f13750d91e4a0ed30bff8169440d35f3f
Message:
*levandov: new, fraction-free version of nc_kBucketPolyRed added


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

Legend:

Unmodified
Added
Removed
  • kernel/gring.cc

    r0012cd ra81a22  
    77 *  Author:  levandov (Viktor Levandovsky)
    88 *  Created: 8/00 - 11/00
    9  *  Version: $Id: gring.cc,v 1.25 2005-04-22 18:09:42 levandov Exp $
     9 *  Version: $Id: gring.cc,v 1.26 2005-07-15 11:58:24 levandov Exp $
    1010 *******************************************************************/
    1111#include "mod2.h"
     
    12281228void nc_kBucketPolyRed(kBucket_pt b, poly p, number *c)
    12291229{
    1230   // b will not by multiplied by any constant in this impl.
     1230  // b will not be multiplied by any constant in this impl.
    12311231  // ==> *c=1
    12321232  *c=nInit(1);
     
    12551255  int l=pLength(pp);
    12561256  kBucket_Add_q(b,pp,&l);
     1257}
     1258
     1259void nc_kBucketPolyRed_Z(kBucket_pt b, poly p, number *c)
     1260{
     1261  // b is multiplied by a constant in this impl.
     1262  poly m=pOne();
     1263  pExpVectorDiff(m,kBucketGetLm(b),p);
     1264  //pSetm(m);
     1265#ifdef PDEBUG
     1266  pTest(m);
     1267#endif
     1268  poly pp = nc_mm_Mult_p(m,pCopy(p),currRing);
     1269  pDelete(&m);
     1270  *c = kBucketPolyRed(b,pp,pLength(pp),NULL);
    12571271}
    12581272
  • kernel/gring.h

    r0012cd ra81a22  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: gring.h,v 1.11 2005-04-22 18:09:42 levandov Exp $ */
     6/* $Id: gring.h,v 1.12 2005-07-15 11:58:23 levandov Exp $ */
    77/*
    88* ABSTRACT additional defines etc for --with-plural
     
    8080/* void nc_kBucketPolyRed(kBucket_pt b, poly p); */
    8181void nc_kBucketPolyRed(kBucket_pt b, poly p, number *c);
     82void nc_kBucketPolyRed_Z(kBucket_pt b, poly p, number *c);
    8283void nc_PolyPolyRed(poly &b, poly p, number *c);
    8384
Note: See TracChangeset for help on using the changeset viewer.