Changeset bc4605 in git


Ignore:
Timestamp:
Jun 30, 1999, 4:42:39 PM (24 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
3932494a14100776dd25479d8a30fd56fb8ea293
Parents:
54ef19be93941a1f50a58f040b1314ee4a5a27e5
Message:
bugs for bareiss with 3 arguments


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

Legend:

Unmodified
Added
Removed
  • Singular/sparsmat.cc

    r54ef19 rbc4605  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: sparsmat.cc,v 1.9 1999-06-22 11:24:02 pohl Exp $ */
     4/* $Id: sparsmat.cc,v 1.10 1999-06-30 14:42:39 pohl Exp $ */
    55
    66/*
     
    12711271    j++;
    12721272    if (j > act) break;
    1273     if (m_act[i]->pos > tored)
    1274     {
    1275       m_res[inred] = m_act[i];
     1273    if (m_act[j]->pos > tored)
     1274    {
     1275      m_res[inred] = m_act[j];
    12761276      inred--;
    12771277    }
     
    13031303      perm[crd+i] = a->pos;
    13041304      a = a->n;
    1305     } while (a != NULL);
     1305    } while ((a != NULL) && (a->pos <= tored));
    13061306    for (j=act-1;j;j--) // load all positions of perm
    13071307    {
     
    13191319          }
    13201320          a = a->n;
    1321           if (a == NULL) break;
     1321          if ((a == NULL) || (a->pos > tored)) break;
    13221322        }
    13231323        k++;
    1324         if (k > i)
     1324        if ((k > i) && (a->pos <= tored))
    13251325        {
    13261326          do
     
    13291329            perm[crd+i] = a->pos;
    13301330            a = a->n;
    1331           } while (a != NULL);
     1331          } while ((a != NULL) && (a->pos <= tored));
    13321332          break;
    13331333        }
     
    13821382    act--;
    13831383  }
    1384   for (i=1;i<=nrows;i++) // take the rest of m_row
     1384  for (i=1;i<=tored;i++) // take the rest of m_row
    13851385  {
    13861386    if(m_row[i] != NULL)
     
    14021402            h->n = NULL;
    14031403            h->pos = tored;
     1404            break;
     1405          }
     1406          ap = a;
     1407        }
     1408      } while (r!=NULL);
     1409    }
     1410  }
     1411  for (i=tored+1;i<=nrows;i++) // take the rest of m_row
     1412  {
     1413    if(m_row[i] != NULL)
     1414    {
     1415      r = m_row[i];
     1416      m_row[i] = NULL;
     1417      do
     1418      {
     1419        ap = m_res[r->pos];
     1420        loop
     1421        {
     1422          a = ap->n;
     1423          if (a == NULL)
     1424          {
     1425            h = ap->n = r;
     1426            r = r->n;
     1427            h->n = NULL;
     1428            h->pos = i;
    14041429            break;
    14051430          }
Note: See TracChangeset for help on using the changeset viewer.