Changeset 456842 in git for libfac/factor/Factor.cc
- Timestamp:
- Aug 8, 2001, 4:26:56 PM (22 years ago)
- Branches:
- (u'spielwiese', 'a7324b6e0b44a1a8ed3fa4d9ca3e2ff210ddd52c')
- Children:
- 8444b045c3217f44893e92cc7acc9a1bc7595178
- Parents:
- 14b1e65b4290df7e1f7dc6b926269dc204ea38a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/factor/Factor.cc
r14b1e65 r456842 1 1 /* Copyright 1996 Michael Messollen. All rights reserved. */ 2 2 /////////////////////////////////////////////////////////////////////////////// 3 static char * rcsid = "$Id: Factor.cc,v 1. 9 2001-08-08 11:59:12Singular Exp $ ";3 static char * rcsid = "$Id: Factor.cc,v 1.10 2001-08-08 14:26:55 Singular Exp $ "; 4 4 static char * errmsg = "\nYou found a bug!\nPlease inform (Michael Messollen) michael@math.uni-sb.de \nPlease include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 5 5 /////////////////////////////////////////////////////////////////////////////// … … 23 23 24 24 #ifdef SINGULAR 25 # define HAVE_SINGULAR 25 #define HAVE_SINGULAR_ERROR 26 #endif 27 28 #ifdef HAVE_SINGULAR_ERROR 26 29 extern "C" { void WerrorS(char *); } 27 extern void WarnS(const char *);30 extern "C" { void WarnS(const char *); } 28 31 #endif 29 32 … … 218 221 } 219 222 else { 220 #ifdef HAVE_SINGULAR 223 #ifdef HAVE_SINGULAR_ERROR 221 224 WerrorS("libfac: ERROR: not_monic1: case lt is a sum."); 222 225 #else 226 #ifndef NOSTREAMIO 223 227 cerr << "libfac: ERROR: not_monic1: case lt is a sum.\n" 224 228 << rcsid << errmsg << endl; 229 #endif 225 230 #endif 226 231 } … … 235 240 Returnlist= myUnion( CFFList(CFFactor(1/a,1)),Returnlist) ; 236 241 else { 237 #ifdef HAVE_SINGULAR 242 #ifdef HAVE_SINGULAR_ERROR 238 243 WerrorS("libfac: ERROR: not_monic2: case lt is a sum."); 239 244 #else 245 #ifndef NOSTREAMIO 240 246 cerr << "libfac: ERROR: not_monic2: case lt is a sum.\n" 241 247 << rcsid << errmsg << endl; 248 #endif 242 249 #endif 243 250 } … … 324 331 if ( degree(Extension) == 0 ) FFRandom gen; 325 332 else { 326 #ifdef HAVE_SINGULAR 333 #ifdef HAVE_SINGULAR_ERROR 327 334 WerrorS("libfac: evaluate: Extension not inFF() or inGF() !"); 328 335 #else … … 397 404 } 398 405 else { 399 #ifdef HAVE_SINGULAR 406 #ifdef HAVE_SINGULAR_ERROR 400 407 WerrorS("libfac: spezializePoly ERROR: Working over given extension-field not yet implemented!"); 401 408 #else 409 #ifndef NOSTREAMIO 402 410 cerr << "libfac: spezializePoly ERROR: Working over given extension-field not yet implemented!\n" 403 411 << rcsid << errmsg << endl; 412 #endif 404 413 #endif 405 414 return 0; … … 431 440 else { if ( degree(Extension) == 0 ) FFRandom gen; 432 441 else { 433 #ifdef HAVE_SINGULAR 442 #ifdef HAVE_SINGULAR_ERROR 434 443 WerrorS("libfac: evaluate: Extension not inFF() or inGF() !"); 435 444 #else 445 #ifndef NOSTREAMIO 436 446 cerr << "libfac: evaluate: " << Extension << " not inFF() or inGF() !" 437 447 << endl; 448 #endif 438 449 #endif 439 450 FFRandom gen; }} … … 619 630 DEBOUTLN(cout, "Returned from specializePoly: success: ", success); 620 631 if (success == 0 ){ // No spezialisation could be found 621 #ifdef SINGULAR632 #ifdef HAVE_SINGULAR_ERROR 622 633 WarnS("libfac: Factorize: ERROR: Not able to find a valid specialization!"); 623 634 #else 635 #ifndef NOSTREAMIO 624 636 cerr << "libfac: Factorize: ERROR: Not able to find a valid specialization!\n" 625 637 << rcsid << errmsg << endl; 638 #else 639 ; 640 #endif 626 641 #endif 627 642 Outputlist.append(CFFactor(F,1)); … … 828 843 /* 829 844 $Log: not supported by cvs2svn $ 845 Revision 1.9 2001/08/08 11:59:12 Singular 846 *hannes: Dan's NOSTREAMIO changes 847 830 848 Revision 1.8 2001/08/06 08:32:54 Singular 831 849 * hannes: code cleanup
Note: See TracChangeset
for help on using the changeset viewer.