Changeset c903a3 in git


Ignore:
Timestamp:
Feb 1, 2007, 5:39:30 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
f4b74e24435694d98ef9a9bec0af428cd1ff0629
Parents:
db70a23edf7040a3fa40d7ac55c0c84cd08b970e
Message:
*hannes:clearS -> kInline.cc


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

Legend:

Unmodified
Added
Removed
  • kernel/kInline.cc

    rdb70a23 rc903a3  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: kInline.cc,v 1.3 2006-05-08 12:55:10 Singular Exp $
     9 *  Version: $Id: kInline.cc,v 1.4 2007-02-01 16:39:30 Singular Exp $
    1010 *******************************************************************/
    1111#ifndef KINLINE_CC
     
    10451045}
    10461046
     1047static inline void clearS (poly p, unsigned long p_sev, int* at, int* k,
     1048                    kStrategy strat)
     1049{
     1050  assume(p_sev == pGetShortExpVector(p));
     1051  if (strat->noClearS) return;
     1052  if (!pLmShortDivisibleBy(p,p_sev, strat->S[*at], ~ strat->sevS[*at])) return;
     1053  deleteInS((*at),strat);
     1054  (*at)--;
     1055  (*k)--;
     1056}
     1057
    10471058#endif // defined(KINLINE) || defined(KUTIL_CC)
    10481059#endif // KINLINE_CC
  • kernel/kutil.cc

    rdb70a23 rc903a3  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.46 2007-02-01 16:20:44 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.47 2007-02-01 16:39:30 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    951951#endif
    952952  (*length)--;
    953 }
    954 
    955 /*2
    956 *is used after updating the pairset,if the leading term of p
    957 *divides the leading term of some S[i] it will be canceled
    958 */
    959 static inline void clearS (poly p, unsigned long p_sev, int* at, int* k,
    960                     kStrategy strat)
    961 {
    962   assume(p_sev == pGetShortExpVector(p));
    963   if (strat->noClearS) return;
    964   if (!pLmShortDivisibleBy(p,p_sev, strat->S[*at], ~ strat->sevS[*at])) return;
    965   deleteInS((*at),strat);
    966   (*at)--;
    967   (*k)--;
    968953}
    969954
Note: See TracChangeset for help on using the changeset viewer.