Changeset 355c71 in git for Singular/LIB
- Timestamp:
- Feb 13, 2010, 3:48:41 PM (14 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
- Children:
- 31c447291e9eccdbde66296a43b320588c671e83
- Parents:
- c5d0aed165ab1ec8a6bf40d0595d42a2ada6436b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/normaliz.lib
rc5d0aed r355c71 150 150 static proc fileExists(string f) 151 151 { 152 return( !system("sh","ls "+f+" &> /dev/null"));152 return(status (f,"exists")=="yes"); 153 153 } 154 154 … … 820 820 } 821 821 822 if(!GenGen) // return nothing if "gen" has not been generated 823 { 824 return(); 822 if(!GenGen) // return input matrix if "gen" has not been generated 823 { 824 if(!queryInt("nmz_files_keep_switch")) 825 { 826 eraseTempNmzDataPath(); 827 } 828 return(sgr); 825 829 } 826 830 intmat Gen=readNmzData("gen"); … … 1123 1127 string dummy=collectNmzOptions(); // only to set GenGen 1124 1128 1125 if(!GenGen) // return I1129 /* if(!GenGen) // return I 1126 1130 { 1127 1131 runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode); 1128 1132 return(I); 1129 1133 } 1130 return( intmat2mons( runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode) ) );1134 */ return( intmat2mons( runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode) ) ); 1131 1135 } 1132 1136 … … 1200 1204 string dummy=collectNmzOptions(); // only to set GenGen 1201 1205 1202 if(!GenGen) // return I1206 /* if(!GenGen) // return I 1203 1207 { 1204 1208 runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode); 1205 return( I);1206 } 1207 1209 return(list(I)); 1210 } 1211 */ 1208 1212 intmat nmz_data=runNormaliz(expo_vecs,ncols(expo_vecs)-1+last_comp, 1209 1213 nmz_mode); … … 1241 1245 representing the lattice points of the polytope. 1242 1246 @* 1243 @* The function returns the input ideal I if one of the options 1244 @code{supp}, @code{triang}, or @code{hvect} has been activated. 1247 @* The function returns the a list containing the input ideal I if one 1248 of the options @code{supp}, @code{triang}, or @code{hvect} has been 1249 activated. 1245 1250 However, in this case some numerical invariants are computed, and 1246 1251 some other data may be contained in files that you can read into … … 1277 1282 contains only one ideal, namely the monomials generating the integral 1278 1283 closure of the ideal. 1279 @* The function returns the input ideal I if one of the options 1280 @code{supp}, @code{triang}, or @code{hvect} has been activated. 1284 @* The function returns the a list containing the input ideal I if one 1285 of the options @code{supp}, @code{triang}, or @code{hvect} has been 1286 activated. 1281 1287 However, in this case some numerical invariants are computed, and 1282 1288 some other data may be contained in files that you can read into … … 1309 1315 $R^T$. 1310 1316 @end tex 1311 @* The function returns the input matrix T if one of the options 1312 @code{supp}, @code{triang}, or @code{hvect} has been activated. 1317 @* The function returns the ideal given by the input matrix T if one of 1318 the options @code{supp}, @code{triang}, or @code{hvect} has been 1319 activated. 1313 1320 However, in this case some numerical invariants are computed, and 1314 1321 some other data may be contained in files that you can read into … … 1346 1353 string dummy=collectNmzOptions(); // only to set GenGen 1347 1354 1348 if(!GenGen) // return T1355 /* if(!GenGen) // return T 1349 1356 { 1350 1357 runNormaliz(T,ncols(T),5); 1351 return( Z);1352 } 1353 return( intmat2mons( runNormaliz(T,ncols(T),5) ) );1358 return(T); 1359 } 1360 */ return( intmat2mons( runNormaliz(T,ncols(T),5) ) ); 1354 1361 } 1355 1362 example … … 1364 1371 RETURN: The function returns a monomial ideal, to be considered as the list 1365 1372 of monomials generating @math{S} as an algebra over the coefficient 1366 1373 field. 1367 1374 BACKGROUND: @texinfo 1368 1375 @tex … … 1374 1381 @end tex 1375 1382 @end texinfo 1376 @* The function returns the input matrix V if one of the options 1377 @code{supp}, @code{triang}, or @code{hvect} has been activated. 1383 @* The function returns the ideal given by the input matrix V if one of 1384 the options @code{supp}, @code{triang}, or @code{hvect} has been 1385 activated. 1378 1386 However, in this case some numerical invariants are computed, and 1379 1387 some other data may be contained in files that you can read into … … 1415 1423 string dummy=collectNmzOptions(); // only to set GenGen 1416 1424 1417 if(!GenGen) // return V1425 /* if(!GenGen) // return V 1418 1426 { 1419 1427 runNormaliz(V1,ncols(V),4); 1420 1428 return(V); 1421 1429 } 1422 1430 */ 1423 1431 return(intmat2mons(runNormaliz(V1,ncols(V),4))); 1424 1432 } … … 1435 1443 monomials which generate an algebra over the coefficient field. The 1436 1444 first is the system of monomial generators of @math{S}, the second 1437 the system of generators of @math{M}. 1438 @* The function returns the input matrix V if one of the options 1439 @code{supp}, @code{triang}, or @code{hvect} has been activated. 1445 the system of generators of @math{M}. 1446 @* The function returns a list consisting of the ideal given by the 1447 input matrix T if one of the options @code{supp}, @code{triang}, or 1448 @code{hvect} has been activated. 1440 1449 However, in this case some numerical invariants are computed, and 1441 1450 some other data may be contained in files that you can read into … … 1493 1502 string dummy=collectNmzOptions(); // only to set GenGen 1494 1503 1495 if(!GenGen) // return V1504 /* if(!GenGen) // return V 1496 1505 { 1497 1506 runNormaliz(V1,ncols(V),4); 1498 1507 return(V); 1499 1508 } 1500 1509 */ 1501 1510 intmat nmz_data=runNormaliz(V1,ncols(V),4); 1502 1511
Note: See TracChangeset
for help on using the changeset viewer.