Changeset b9624d6 in git for Singular/fglmcomb.cc


Ignore:
Timestamp:
Jun 4, 1998, 3:39:21 PM (26 years ago)
Author:
Tim Wichmann <wichmann@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
9bc55636ce6d395563fd45ac7d2eee0dbcaf046d
Parents:
87be9cbe919257412a7b85444fc35ac94702bf38
Message:
* wichmann: + added HAVE_EXPLICIT_CONSTR support


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

Legend:

Unmodified
Added
Removed
  • Singular/fglmcomb.cc

    r87be9cb rb9624d6  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fglmcomb.cc,v 1.11 1998-05-19 09:46:46 pohl Exp $
     2// $Id: fglmcomb.cc,v 1.12 1998-06-04 13:38:48 wichmann Exp $
    33
    44/****************************************
     
    199199
    200200    nf= (polyset)Alloc( numMonoms * sizeof( poly ) );
     201
     202#ifndef HAVE_EXPLICIT_CONSTR
     203    mv= new fglmVector[ numMonoms ];
     204#else
    201205    mv= (fglmVector *)Alloc( numMonoms * sizeof( fglmVector ) );
    202 
     206#endif
     207
     208#ifndef HAVE_EXPLICIT_CONSTR
     209    v= new fglmVector[ numMonoms ];
     210#else
    203211    v= (fglmVector *)Alloc( numMonoms * sizeof( fglmVector ) );
     212#endif
     213
    204214    basisMax= basisBS;
    205215    basis= (polyset)Alloc( basisMax * sizeof( poly ) );
     
    260270        }
    261271        nf[k]= current;
    262 #ifdef __NO_CONSTR__
     272#ifndef HAVE_EXPLICIT_CONSTR
    263273        mv[k].mac_constr( currV );
    264274#else
     
    271281        STICKYPROT( "." );
    272282 
    273 #ifdef __NO_CONSTR__
     283#ifndef HAVE_EXPLICIT_CONSTR
    274284        v[k].mac_constr_i( basisSize );
    275285#else
     
    341351            act++;
    342352        }
     353#ifndef HAVE_EXPLICIT_CONSTR
     354        v[best-1].clearelems();
     355#else
    343356        v[best-1].~fglmVector();
     357#endif
    344358    }
    345359    poly result = NULL;
     
    386400//     for ( k= 0; k < numMonoms; k++ )
    387401//         v[k].~fglmVector();
     402#ifndef HAVE_EXPLICIT_CONSTR
     403    delete [] v;
     404#else
    388405    Free( (ADDRESS)v, numMonoms * sizeof( fglmVector ) );
     406#endif
     407
    389408    for ( k= 0; k < basisSize; k++ )
    390409        pDelete( basis + k );
    391410    Free( (ADDRESS)basis, basisMax * sizeof( poly ) );
     411
     412#ifndef HAVE_EXPLICIT_CONSTR
     413    delete [] mv;
     414#else
    392415    for ( k= 0; k < numMonoms; k++ )
    393416        mv[k].~fglmVector();
    394417    Free( (ADDRESS)mv, numMonoms * sizeof( fglmVector ) );
     418#endif
    395419
    396420    for ( k= 0; k < numMonoms; k++ )
Note: See TracChangeset for help on using the changeset viewer.