Changeset f0549c8 in git


Ignore:
Timestamp:
Dec 17, 2011, 9:38:50 PM (11 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
0fc4c8bd0177d4673beebe5a386cd69e4161f080
Parents:
27637404a579c5be90dfdaadf21dd3a6e892901b
git-author:
Christian Eder <ederc@mathematik.uni-kl.de>2011-12-17 21:38:50+01:00
git-committer:
Christian Eder <ederc@mathematik.uni-kl.de>2011-12-19 15:30:56+01:00
Message:
fixes Manual tests: fglm and stdfglm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/fglm.cc

    r276374 rf0549c8  
    313313                // Now the settings are compatible with FGLM
    314314                assumeStdFlag( (leftv)ih );
    315                 if ( fglmzero( IDRING(sourceRingHdl), sourceIdeal, destRingHdl, destIdeal, FALSE, (currQuotient != NULL) ) == FALSE )
     315                if ( fglmzero( IDRING(sourceRingHdl), sourceIdeal, IDRING(destRingHdl), destIdeal, FALSE, (currQuotient != NULL) ) == FALSE )
    316316                    state= FglmNotReduced;
    317317            }
  • kernel/fglm.h

    r276374 rf0549c8  
    8282// if deleteIdeal==FALSE, then nothing happens to sourceIdeal
    8383BOOLEAN
    84 fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destideal, BOOLEAN switchBack = TRUE, BOOLEAN deleteIdeal = FALSE );
     84fglmzero( ring sourceRing, ideal & sourceIdeal, ring destRing, ideal & destideal, BOOLEAN switchBack = TRUE, BOOLEAN deleteIdeal = FALSE );
    8585
    8686BOOLEAN fglmquot( ideal sourceIdeal, poly quot, ideal & destIdeal );
  • kernel/fglmzero.cc

    r276374 rf0549c8  
    987987    pdenom= nInit( 1 );
    988988    number vdenom = v.clearDenom();
    989     if ( ! nIsOne( vdenom ) && ! nIsZero( vdenom ) ) {
     989    if ( ! nIsZero( vdenom ) && ! nIsOne( vdenom ) ) {
    990990        p.setelem( p.size(), vdenom );
    991991    }
     
    994994    }
    995995    number gcd = v.gcd();
    996     if ( ! nIsOne( gcd ) && ! nIsZero( gcd ) ) {
     996    if ( ! nIsZero( gcd ) && ! nIsOne( gcd ) ) {
    997997        v /= gcd;
    998998        number temp= nMult( pdenom, gcd );
     
    10201020            nDelete( & fac2 );
    10211021            number gcd = v.gcd();
    1022             if ( ! nIsOne( gcd ) && ! nIsZero( gcd ) ) {
     1022            if ( ! nIsZero( gcd ) && ! nIsOne( gcd ) ) {
    10231023                v /= gcd;
    10241024                number temp= nMult( pdenom, gcd );
     
    11861186// for a descritption of the parameters see fglm.h
    11871187BOOLEAN
    1188 fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
    1189 {
    1190     //idhdl initialRingHdl = currRingHdl;
     1188fglmzero( ring sourceRing, ideal & sourceIdeal, ring destRing, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
     1189{
     1190    ring initialRing = currRing;
    11911191    BOOLEAN fglmok;
    11921192
     
    11941194    {
    11951195        rChangeCurrRing( sourceRing );
    1196         //currRingHdl=NULL;
    11971196    }
    11981197    idealFunctionals L( 100, rVar(currRing) );
     
    12001199    if ( deleteIdeal == TRUE )
    12011200        idDelete( & sourceIdeal );
    1202     //rSetHdl( destRingHdl );
     1201    rChangeCurrRing( destRing );
    12031202    if ( fglmok == TRUE )
    12041203    {
     
    12061205        destIdeal= GroebnerViaFunctionals( L );
    12071206    }
    1208     //if ( (switchBack) && (currRingHdl != initialRingHdl) )
    1209     //    rSetHdl( initialRingHdl );
     1207    if ( (switchBack) && (currRing != initialRing) )
     1208      rChangeCurrRing( initialRing );
    12101209    return fglmok;
    12111210}
Note: See TracChangeset for help on using the changeset viewer.