Changeset 098f98f in git for kernel/fglmzero.cc


Ignore:
Timestamp:
Jan 6, 2010, 3:55:03 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
eaf66fe9969d8b8c2cf369ea94e7616f379a3229
Parents:
b46774f2ffde4294abff59d9fdb51d1914924c72
Message:
IDTYP etc -> ipid.h

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

Legend:

Unmodified
Added
Removed
  • kernel/fglmzero.cc

    rb46774 r098f98f  
    3030#include "omalloc.h"
    3131#include "kstd1.h" // for kNF (see fglmquot)
    32 #include "intvec.h" 
     32#include "intvec.h"
    3333#include "fglm.h"
    3434#include "fglmvec.h"
     
    593593void
    594594internalCalculateFunctionals( const ideal & theIdeal, idealFunctionals & l,
    595                               fglmSdata & data )
     595                              fglmSdata & data )
    596596{
    597597
     
    663663static BOOLEAN
    664664CalculateFunctionals( const ideal & theIdeal, idealFunctionals & l,
    665                       poly & p, fglmVector & v )
     665                      poly & p, fglmVector & v )
    666666{
    667667    fglmSdata data( theIdeal );
     
    669669    //    STICKYPROT("Calculating vector rep\n");
    670670    v = data.getVectorRep( p );
    671     // if ( v.isZero() ) 
     671    // if ( v.isZero() )
    672672    //   STICKYPROT("vectorrep is 0\n");
    673673    return ( data.state() );
     
    10191019static ideal
    10201020GroebnerViaFunctionals( const idealFunctionals & l,
    1021                         fglmVector iv = fglmVector() )
     1021                        fglmVector iv = fglmVector() )
    10221022// If iv is zero, calculates the groebnerBasis for the ideal which is
    10231023// defined by l.
     
    10391039      initv = iv;
    10401040    }
    1041      
     1041
    10421042    poly one = pOne();
    10431043    data.updateCandidates( one, initv );
     
    11041104    for(i = pVariables; i > 0; i--) varpermutation[pVariables+1-i] = (*iv)[i-1];
    11051105    delete iv;
    1106      
     1106
    11071107    for (i= 1; i <= pVariables; i++ )
    11081108    {
     
    11571157// for a descritption of the parameters see fglm.h
    11581158BOOLEAN
    1159 fglmzero( idhdl sourceRingHdl, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
     1159fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
    11601160{
    11611161    idhdl initialRingHdl = currRingHdl;
    11621162    BOOLEAN fglmok;
    11631163
    1164     if ( currRingHdl != sourceRingHdl )
    1165         rSetHdl( sourceRingHdl );
     1164    if ( currRing != sourceRing )
     1165    {
     1166        rChangeCurrRing( sourceRing );
     1167        currRingHdl=NULL;
     1168    }
    11661169    idealFunctionals L( 100, pVariables );
    11671170    fglmok = CalculateFunctionals( sourceIdeal, L );
     
    11691172        idDelete( & sourceIdeal );
    11701173    rSetHdl( destRingHdl );
    1171     if ( fglmok == TRUE ) {
    1172         L.map( IDRING( sourceRingHdl ) );
     1174    if ( fglmok == TRUE )
     1175    {
     1176        L.map( sourceRing );
    11731177        destIdeal= GroebnerViaFunctionals( L );
    11741178    }
Note: See TracChangeset for help on using the changeset viewer.