Changeset 670ad3 in git


Ignore:
Timestamp:
Jan 27, 2010, 2:16:19 PM (13 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
a4875334edd65075db8edd5f072597fac0983b5f
Parents:
998298c25fb590befaae6849197e879ab70df0b7
Message:
idhdl -> ring in fglmhomog

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

Legend:

Unmodified
Added
Removed
  • kernel/fglmhom.cc

    r998298c r670ad3  
    338338
    339339BOOLEAN
    340 fglmhomog( idhdl sourceRingHdl, ideal sourceIdeal, idhdl destRingHdl, ideal & destIdeal )
     340fglmhomog( ring sourceRing, ideal sourceIdeal, ring destRing, ideal & destIdeal )
    341341{
    342342#define groebnerBS 16
     
    347347
    348348    // get the hilbert series and the leading monomials of the sourceIdeal:
    349     rSetHdl( sourceRingHdl, TRUE );
    350     ring sourceRing = currRing;
     349    rChangeCurrRing( sourceRing );
    351350
    352351    intvec * hilb = hHstdSeries( sourceIdeal, NULL, currQuotient );
     
    354353    dat.sourceIdeal= sourceIdeal;
    355354    dat.sourceHeads= (doublepoly *)omAlloc( IDELEMS( sourceIdeal ) * sizeof( doublepoly ) );
    356     for ( s= IDELEMS( sourceIdeal ) - 1; s >= 0; s-- ) {
     355    for ( s= IDELEMS( sourceIdeal ) - 1; s >= 0; s-- )
     356    {
    357357        dat.sourceHeads[s].sm= pHead( (sourceIdeal->m)[s] );
    358358    }
    359359    dat.numSourceHeads= IDELEMS( sourceIdeal );
    360     rSetHdl( destRingHdl, TRUE );
    361     ring destRing = currRing;
     360    rChangeCurrRing( destRing );
    362361
    363362    // Map the sourceHeads to the destRing
     
    367366    //nSetMap( sourceRing->ch, sourceRing->parameter, sourceRing->P, sourceRing->minpoly );
    368367    nSetMap( sourceRing );
    369     for ( s= IDELEMS( sourceIdeal ) - 1; s >= 0; s-- ) {
     368    for ( s= IDELEMS( sourceIdeal ) - 1; s >= 0; s-- )
     369    {
    370370        dat.sourceHeads[s].dm= pPermPoly( dat.sourceHeads[s].sm, vperm, sourceRing, NULL, 0 );
    371371    }
     
    374374    dat.numDestPolys= 0;
    375375
    376     while ( (numGBelems= hfglmNextdegree( hilb, dat.destIdeal, deg )) != 0 ) {
     376    while ( (numGBelems= hfglmNextdegree( hilb, dat.destIdeal, deg )) != 0 )
     377    {
    377378        int num = 0;  // the number of monoms of degree deg
    378379        PROT2( "deg= %i ", deg );
     
    399400        PROT2( "%i)\nvec>", dat.overall );
    400401        // switch to sourceRing and map monoms
    401         rSetHdl( sourceRingHdl, TRUE );
     402        rChangeCurrRing( sourceRing );
    402403        mapMonoms( destRing, dat );
    403404        getVectorRep( dat );
    404405
    405406        // switch to destination Ring and remap the vectors
    406         rSetHdl( destRingHdl, TRUE );
     407        rChangeCurrRing( destRing );
    407408        remapVectors( sourceRing, dat );
    408409
     
    436437
    437438    ideal i= IDIDEAL(ih);
    438     fglmhomog( (idhdl)first->data, i, dest, result );
     439    fglmhomog( IDRING((idhdl)first->data), i, IDRING(dest), result );
    439440
    440441    return( result );
Note: See TracChangeset for help on using the changeset viewer.