Changeset 355c71 in git for Singular/LIB


Ignore:
Timestamp:
Feb 13, 2010, 3:48:41 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
Children:
31c447291e9eccdbde66296a43b320588c671e83
Parents:
c5d0aed165ab1ec8a6bf40d0595d42a2ada6436b
Message:
return type/status

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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/normaliz.lib

    rc5d0aed r355c71  
    150150static proc fileExists(string f)
    151151{
    152     return(!system("sh","ls "+f+" &> /dev/null"));
     152    return(status (f,"exists")=="yes");
    153153}
    154154
     
    820820    }
    821821
    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);
    825829    }
    826830    intmat Gen=readNmzData("gen");
     
    11231127    string dummy=collectNmzOptions(); // only to set GenGen
    11241128
    1125     if(!GenGen) // return I
     1129/*    if(!GenGen) // return I
    11261130    {
    11271131        runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode);
    11281132        return(I);
    11291133    }
    1130     return( intmat2mons( runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode) ) );
     1134*/    return( intmat2mons( runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode) ) );
    11311135}
    11321136
     
    12001204    string dummy=collectNmzOptions(); // only to set GenGen
    12011205
    1202     if(!GenGen) // return I
     1206/*    if(!GenGen) // return I
    12031207    {
    12041208        runNormaliz(expo_vecs,ncols(expo_vecs),nmz_mode);
    1205         return(I);
    1206     }
    1207 
     1209        return(list(I));
     1210    }
     1211*/
    12081212    intmat nmz_data=runNormaliz(expo_vecs,ncols(expo_vecs)-1+last_comp,
    12091213                                                                  nmz_mode);
     
    12411245                representing the lattice points of the polytope.
    12421246@*
    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.
    12451250          However, in this case some numerical invariants are computed, and
    12461251          some other data may be contained in files that you can read into
     
    12771282        contains only one ideal, namely the monomials generating the integral
    12781283        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.
    12811287          However, in this case some numerical invariants are computed, and
    12821288          some other data may be contained in files that you can read into
     
    13091315$R^T$.
    13101316@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.
    13131320          However, in this case some numerical invariants are computed, and
    13141321          some other data may be contained in files that you can read into
     
    13461353    string dummy=collectNmzOptions();  // only to set GenGen
    13471354
    1348     if(!GenGen) // return T
     1355/*    if(!GenGen) // return T
    13491356    {
    13501357        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) ) );
    13541361}
    13551362example
     
    13641371RETURN:   The function returns a monomial ideal, to be considered as the list
    13651372          of monomials generating @math{S} as an algebra over the coefficient
    1366              field.
     1373          field.
    13671374BACKGROUND: @texinfo
    13681375@tex
     
    13741381@end tex
    13751382@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.
    13781386          However, in this case some numerical invariants are computed, and
    13791387          some other data may be contained in files that you can read into
     
    14151423    string dummy=collectNmzOptions();  // only to set GenGen
    14161424
    1417     if(!GenGen) // return V
     1425/*    if(!GenGen) // return V
    14181426    {
    14191427        runNormaliz(V1,ncols(V),4);
    14201428        return(V);
    14211429    }
    1422 
     1430*/
    14231431    return(intmat2mons(runNormaliz(V1,ncols(V),4)));
    14241432}
     
    14351443          monomials which generate an algebra over the coefficient field. The
    14361444          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.
    14401449          However, in this case some numerical invariants are computed, and
    14411450          some other data may be contained in files that you can read into
     
    14931502    string dummy=collectNmzOptions();  // only to set GenGen
    14941503
    1495     if(!GenGen) // return V
     1504/*    if(!GenGen) // return V
    14961505    {
    14971506        runNormaliz(V1,ncols(V),4);
    14981507        return(V);
    14991508    }
    1500 
     1509*/
    15011510    intmat nmz_data=runNormaliz(V1,ncols(V),4);
    15021511
Note: See TracChangeset for help on using the changeset viewer.