Changeset 48884f2 in git for kernel/polys.cc


Ignore:
Timestamp:
Jul 29, 2009, 12:07:22 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
83d85d086aa675e45d0926a7b03e4103ce472a6c
Parents:
1305eacb0ae9e37f13cfc9e1a6df9828bff15c3b
Message:
*hannes: pLast -> polys.cc


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

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    r1305ea r48884f2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.38 2009-05-19 08:44:30 Singular Exp $ */
     4/* $Id: polys.cc,v 1.39 2009-07-29 10:07:22 Singular Exp $ */
    55
    66/*
     
    11151115}
    11161116
     1117/*2
     1118* returns the length of a (numbers of monomials)
     1119* respect syzComp
     1120*/
     1121poly pLast(poly a, int &l)
     1122{
     1123  if (a == NULL)
     1124  {
     1125    l = 0;
     1126    return NULL;
     1127  }
     1128  l = 1;
     1129  if (! rIsSyzIndexRing(currRing))
     1130  {
     1131    while (pNext(a)!=NULL)
     1132    {
     1133      pIter(a);
     1134      l++;
     1135    }
     1136  }
     1137  else
     1138  {
     1139    int curr_limit = rGetCurrSyzLimit(currRing);
     1140    poly pp = a;
     1141    while ((a=pNext(a))!=NULL)
     1142    {
     1143      if (pGetComp(a)<=curr_limit/*syzComp*/)
     1144        l++;
     1145      else break;
     1146      pp = a;
     1147    }
     1148    a=pp;
     1149  }
     1150  return a;
     1151}
     1152
Note: See TracChangeset for help on using the changeset viewer.