Changeset bc4605 in git
- Timestamp:
- Jun 30, 1999, 4:42:39 PM (24 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 3932494a14100776dd25479d8a30fd56fb8ea293
- Parents:
- 54ef19be93941a1f50a58f040b1314ee4a5a27e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/sparsmat.cc
r54ef19 rbc4605 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: sparsmat.cc,v 1. 9 1999-06-22 11:24:02pohl Exp $ */4 /* $Id: sparsmat.cc,v 1.10 1999-06-30 14:42:39 pohl Exp $ */ 5 5 6 6 /* … … 1271 1271 j++; 1272 1272 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]; 1276 1276 inred--; 1277 1277 } … … 1303 1303 perm[crd+i] = a->pos; 1304 1304 a = a->n; 1305 } while ( a != NULL);1305 } while ((a != NULL) && (a->pos <= tored)); 1306 1306 for (j=act-1;j;j--) // load all positions of perm 1307 1307 { … … 1319 1319 } 1320 1320 a = a->n; 1321 if ( a == NULL) break;1321 if ((a == NULL) || (a->pos > tored)) break; 1322 1322 } 1323 1323 k++; 1324 if ( k > i)1324 if ((k > i) && (a->pos <= tored)) 1325 1325 { 1326 1326 do … … 1329 1329 perm[crd+i] = a->pos; 1330 1330 a = a->n; 1331 } while ( a != NULL);1331 } while ((a != NULL) && (a->pos <= tored)); 1332 1332 break; 1333 1333 } … … 1382 1382 act--; 1383 1383 } 1384 for (i=1;i<= nrows;i++) // take the rest of m_row1384 for (i=1;i<=tored;i++) // take the rest of m_row 1385 1385 { 1386 1386 if(m_row[i] != NULL) … … 1402 1402 h->n = NULL; 1403 1403 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; 1404 1429 break; 1405 1430 }
Note: See TracChangeset
for help on using the changeset viewer.