Changeset 1bf4c54 in git
- Timestamp:
- Nov 24, 2017, 12:35:48 PM (6 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 67a25dc16190bd3be04c9899cc5aba41125ec8b9
- Parents:
- 4d0ea67733b0f73e65b8a437610cac163471ee33
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/fpadim.lib
r4d0ea67 r1bf4c54 1309 1309 G = simplify(G, 2+4+8); 1310 1310 1311 // check special case 1 1312 int l = 0; 1313 for (int i = 1; i <= size(G); i++) { 1314 // find the max degree in G 1315 int d = deg(G[i]); 1316 if (d > l) { 1317 l = d; 1318 } 1319 1320 // also if G is the whole ring 1321 if (leadmonom(G[i]) == 1) { 1322 return(1); 1323 } 1324 } 1325 // if longest word has length 1 we handle it as a special case 1326 if (l == 1) { 1327 return(1); 1328 } 1329 1311 1330 list VUG = lpUfGraph(G, 1); 1312 1331 intmat UG = VUG[1]; // the Ufnarovskij graph … … 1380 1399 G = lead(G); 1381 1400 G = simplify(G, 2+4+8); 1401 1402 // check special case 1 1403 int l = 0; 1404 for (int i = 1; i <= size(G); i++) { 1405 // find the max degree in G 1406 int d = deg(G[i]); 1407 if (d > l) { 1408 l = d; 1409 } 1410 1411 // also if G is the whole ring 1412 if (leadmonom(G[i]) == 1) { 1413 return(1); 1414 } 1415 } 1416 // if longest word has length 1 we handle it as a special case 1417 if (l == 1) { 1418 return(1); 1419 } 1382 1420 1383 1421 list VUG = lpUfGraph(G, 1);
Note: See TracChangeset
for help on using the changeset viewer.