Changeset b9624d6 in git for Singular/fglmcomb.cc
- Timestamp:
- Jun 4, 1998, 3:39:21 PM (26 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 9bc55636ce6d395563fd45ac7d2eee0dbcaf046d
- Parents:
- 87be9cbe919257412a7b85444fc35ac94702bf38
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/fglmcomb.cc
r87be9cb rb9624d6 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fglmcomb.cc,v 1.1 1 1998-05-19 09:46:46 pohlExp $2 // $Id: fglmcomb.cc,v 1.12 1998-06-04 13:38:48 wichmann Exp $ 3 3 4 4 /**************************************** … … 199 199 200 200 nf= (polyset)Alloc( numMonoms * sizeof( poly ) ); 201 202 #ifndef HAVE_EXPLICIT_CONSTR 203 mv= new fglmVector[ numMonoms ]; 204 #else 201 205 mv= (fglmVector *)Alloc( numMonoms * sizeof( fglmVector ) ); 202 206 #endif 207 208 #ifndef HAVE_EXPLICIT_CONSTR 209 v= new fglmVector[ numMonoms ]; 210 #else 203 211 v= (fglmVector *)Alloc( numMonoms * sizeof( fglmVector ) ); 212 #endif 213 204 214 basisMax= basisBS; 205 215 basis= (polyset)Alloc( basisMax * sizeof( poly ) ); … … 260 270 } 261 271 nf[k]= current; 262 #if def __NO_CONSTR__272 #ifndef HAVE_EXPLICIT_CONSTR 263 273 mv[k].mac_constr( currV ); 264 274 #else … … 271 281 STICKYPROT( "." ); 272 282 273 #if def __NO_CONSTR__283 #ifndef HAVE_EXPLICIT_CONSTR 274 284 v[k].mac_constr_i( basisSize ); 275 285 #else … … 341 351 act++; 342 352 } 353 #ifndef HAVE_EXPLICIT_CONSTR 354 v[best-1].clearelems(); 355 #else 343 356 v[best-1].~fglmVector(); 357 #endif 344 358 } 345 359 poly result = NULL; … … 386 400 // for ( k= 0; k < numMonoms; k++ ) 387 401 // v[k].~fglmVector(); 402 #ifndef HAVE_EXPLICIT_CONSTR 403 delete [] v; 404 #else 388 405 Free( (ADDRESS)v, numMonoms * sizeof( fglmVector ) ); 406 #endif 407 389 408 for ( k= 0; k < basisSize; k++ ) 390 409 pDelete( basis + k ); 391 410 Free( (ADDRESS)basis, basisMax * sizeof( poly ) ); 411 412 #ifndef HAVE_EXPLICIT_CONSTR 413 delete [] mv; 414 #else 392 415 for ( k= 0; k < numMonoms; k++ ) 393 416 mv[k].~fglmVector(); 394 417 Free( (ADDRESS)mv, numMonoms * sizeof( fglmVector ) ); 418 #endif 395 419 396 420 for ( k= 0; k < numMonoms; k++ )
Note: See TracChangeset
for help on using the changeset viewer.