Changeset 80a2d8 in git


Ignore:
Timestamp:
Jan 9, 2023, 4:19:16 PM (16 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
69eed9010f45a15ad5528d8b504425ac16cf2743
Parents:
5fd36466ec90af62d5a73de9b58addcf5cc9db70
Message:
checks coeffs: must be ZZ in primdecint.lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/primdecint.lib

    r5fd364 r80a2d8  
    1515  polynomial ring over the integers, Z[x_1,...,x_n].
    1616  The first procedure 'primdecZ' can be used in parallel.
     17  The coefficients must always be ZZ.
    1718
    1819  Reference: Pfister,   Sadiq, Steidel , \"An Algorithm for primary decomposition in polynomial rings over the integers\" , arXiv:1008.2074
     
    3940"USAGE:  primdecZ(I[, n]); I ideal, n integer (number of processors)
    4041NOTE:    If size(#) > 0, then #[1] is the number of available processors for
    41          the computation.
     42         the computation.@*
     43         The coefficients must be ZZ.
    4244RETURN:  a list pr of primary ideals and their associated primes:
    4345@format
     
    4850"
    4951{
     52   if (coeffs(basering)!=ZZ) { ERROR("coefficoents must be ZZ"); }
    5053   if(size(I)==0){return(list(list(ideal(0),ideal(0))));}
    5154
     
    400403proc minAssZ(ideal I)
    401404"USAGE:  minAssZ(I); I ideal
     405         The coefficients must be ZZ.
    402406RETURN:  a list pr of associated primes:
    403407EXAMPLE: example minAssZ; shows an example
    404408"
    405409{
     410   if (coeffs(basering)!=ZZ) { ERROR("coefficoents must be ZZ"); }
    406411   if(size(I)==0){return(list(ideal(0)));}
    407412   if(deg(I[1])==0)
     
    537542proc heightZ(ideal I)
    538543"USAGE:  heightZ(I); I ideal
     544         The coefficients must be ZZ.
    539545RETURN:  the height of the input ideal
    540546EXAMPLE: example heightZ; shows an example
    541547"
    542548{
     549   if (coeffs(basering)!=ZZ) { ERROR("coefficoents must be ZZ"); }
    543550   if(size(I)==0){return(0);}
    544551   if(deg(I[1])==0)
     
    630637proc radicalZ(ideal I)
    631638"USAGE:  radicalZ(I); I ideal
     639         The coefficients must be ZZ.
    632640RETURN:  the radcal of the input ideal
    633641EXAMPLE: example radicalZ; shows an example
    634642"
    635643{
     644   if (coeffs(basering)!=ZZ) { ERROR("coefficoents must be ZZ"); }
    636645   if(size(I)==0){return(ideal(0));}
    637646   if(deg(I[1])==0)
     
    733742proc equidimZ(ideal I)
    734743"USAGE:  equidimZ(I); I ideal
     744         The coefficients must be ZZ.
    735745RETURN:  the part of minimal height
    736746EXAMPLE: example equidimZ; shows an example
    737747"
    738748{
     749   if (coeffs(basering)!=ZZ) { ERROR("coefficoents must be ZZ"); }
    739750   if(size(I)==0){return(ideal(0));}
    740751   if(deg(I[1])==0)
     
    914925proc intersectZ(ideal I, ideal J)
    915926"USAGE:  intersectZ(I,J); I,J ideals
     927         The coefficients must be ZZ.
    916928RETURN:  the intersection of the input ideals
    917929NOTE:    this is an alternative to intersect(I,J) over integers,
     
    919931EXAMPLE: example intersectZ; shows an example
    920932{
     933   if (coeffs(basering)!=ZZ) { ERROR("coefficoents must be ZZ"); }
    921934   def R = basering;
    922935   ring S=integer,( X(1..nvars(R)) ), ( dp(nvars(R)) );
     
    15011514proc primdecZM(module N)
    15021515"USAGE:  primdecZM(N); N module
     1516         The coefficients must be ZZ.
    15031517RETURN:  a list pr of primary modules and their associated primes:
    15041518@format
Note: See TracChangeset for help on using the changeset viewer.