Changeset a0b5e2 in git for Singular/LIB


Ignore:
Timestamp:
Sep 20, 2010, 6:47:00 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
50b025ceafb1c25958940abd4fee0a82510cba8e
Parents:
dec1024e771ce38246bebbcab5f04dba4465e82d
Message:
the pending changes for monomial.lib

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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/monomial.lib

    rdec1024 ra0b5e2  
    1616 (radical, intersection, quotient...).
    1717
     18LITERATURE: Miller, Ezra  and Sturmfels, Bernd: Combinatorial Commutative Algebra,
     19            Springer 2004
     20
    1821PROCEDURES:
    1922 isMonomial(id);       checks whether an ideal id is monomial
     
    3134 isirreducibleMon(id); checks whether a monomial ideal id is irreducible
    3235 isartinianMon(id);    checks whether a monomial ideal id is artininan
    33  isgenericMon(id);     checks whether a monomial ideal id is generic
     36 isgenericMon(id);     checks whether a monomial ideal id is generic, i.e.,
     37                       no two  minimal generators of it agree in the exponent
     38                       of any variable that actually appears in both of them.
    3439 dimMon(id);           dimension of a monomial ideal id
    3540 irreddecMon(id,..);   computes the irreducible decomposition of a monomial
     
    4752"
    4853USAGE:    checkIdeal (I); I ideal.
    49 RETURN:   1, if ideal is generated by monomials; 0, otherwise.
     54RETURN:   1, if the given generators of I are monomials; 0, otherwise.
    5055"
    5156// Aqui NO estoy quitando el caso de que el ideal sea el trivial.
     
    6873USAGE:    quotientIdealMon(I,f); I ideal, f polynomial.
    6974RETURN:   an ideal, the quotient ideal I:(f).
    70 ASSUME:   I is an ideal generated by a list of monomials and f is a monomial
     75ASSUME:   I is an ideal given by a list of monomials and f is a monomial
    7176          of the basering.
    7277"
     
    211216  // Si no tienen el mismo numero de generadores, no pueden ser iguales; ya
    212217  // que vienen dados por el sistema minimal de generadores.
    213   if (size(I) <> size(J))
     218  if (ncols(I) <> ncols(J))
    214219  {
    215220    return(0);
     
    507512"
    508513USAGE:    isMinimal (I); I ideal.
    509 RETURN:   1, if the generators of I are the minimal ones;
     514RETURN:   1, if the given generators of I are the minimal ones;
    510515          0 & minimal generators of I, otherwise.
    511 ASSUME:   I is an ideal of the basering generated by monomials.
     516ASSUME:   I is an ideal of the basering given by monomial generators.
    512517"
    513518{
     
    548553        I = J;
    549554        i--;
    550         sizI = size(I);
     555        sizI = ncols(I);
    551556      }
    552557    }
     
    568573RETURN:   a list, 1 & the minimal generators of I, if I is a monomial ideal;
    569574          0, otherwise.
    570 ASSUME:   I is an ideal of the basering which is not generated by
     575ASSUME:   I is an ideal of the basering whose given generators are not
    571576          monomials.
    572577NOTE:     this procedure is NOT Grobner free and should be used only if the
    573           ideal has non-monomial generators (use first checkIdeal)
     578          given generators are not monomials. (use first checkIdeal)
    574579"
    575580{
     
    685690"USAGE:    minbaseMon (I); I ideal.
    686691RETURN:   an ideal, the minimal monomial generators of I.
    687           (-1 if the generators of I are not monomials)
     692          (-1 if the given generators of I are not monomials)
    688693ASSUME:   I is an  ideal generated by a list of monomials of the basering.
    689694EXAMPLE:  example minbaseMon; shows an example.
     
    697702  if (control == 0)
    698703  {
    699     return (-1);
     704    ERROR ("the ideal is not monomial");
    700705  }
    701706  // Quitamos los ceros del sistema de generadores.
     
    945950ASSUME:   I,J are monomial ideals of the basering.
    946951NOTE:     the minimal monomial generating set is returned.
     952          USING THE SINGULAR COMMAND 'intersect' IS USUALLY FASTER
    947953EXAMPLE:  example intersectMon; shows some examples
    948954"
     
    10691075    {
    10701076      ERROR ("the second ideal is not monomial.");
    1071       return (-1);
    10721077    }
    10731078    else
     
    26522657  }
    26532658  // Generico
    2654   sizI = size(I);
     2659  sizI = ncols(I);
    26552660  if (genericlist[1] == 0)
    26562661  {
     
    30803085  {
    30813086    expartI = leadexp(artI[1]);
    3082     if (size(artI) <> 1)
    3083     {
    3084       artI = artI[2..size(artI)];
     3087    if (ncols(artI) <> 1)
     3088    {
     3089      artI = artI[2..ncols(artI)];
    30853090    }
    30863091    // Hay que distinguir T_1 y T_2. Para ello se comparar vectores
     
    35533558  {
    35543559    artI = sort(artI)[1];
    3555     int sizartI = size(artI);
     3560    int sizartI = ncols(artI);
    35563561    for (i = 1 ; i <= sizartI - 1 ; i ++)
    35573562    {
     
    35773582  poly comp;
    35783583  intvec exp;
    3579   int sizIrred = size(irredDec);
     3584  int sizIrred = ncols(irredDec);
    35803585  ideal auxIdeal;
    35813586  for (i = 1 ; i <= sizIrred ; i ++)
     
    36343639          (returns -1 if I is not a monomial ideal).
    36353640ASSUME:   I is a monomial ideal of the basering k[x(1)..x(n)].
    3636 NOTE:     This procesure returns the irreducible decomposition of I.
     3641NOTE:     This procedure returns the irreducible decomposition of I,
     3642          i.e., the unique irredundant decomposition of I into irreducible
     3643          monomial ideals.
    36373644          One may call the procedure with different algorithms using
    36383645          the optional argument 'alg':
     
    37393746          (returns -1 if I is not a monomial ideal).
    37403747ASSUME:   I is a monomial ideal of the basering k[x(1)..x(n)].
    3741 NOTE:     This procesure returns a minimal primary decomposition of I.
     3748NOTE:     This procedure returns a minimal primary decomposition of I.
    37423749          One may call the procedure with different algorithms using
    37433750          the optional argument 'alg':
Note: See TracChangeset for help on using the changeset viewer.