Changeset 456842 in git
- Timestamp:
- Aug 8, 2001, 4:26:56 PM (22 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 8444b045c3217f44893e92cc7acc9a1bc7595178
- Parents:
- 14b1e65b4290df7e1f7dc6b926269dc204ea38a3
- Location:
- libfac
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/charset/charset.cc
r14b1e65 r456842 2 2 //////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 static char * rcsid = "$Id: charset.cc,v 1. 8 2001-08-06 08:32:53Singular Exp $";4 static char * rcsid = "$Id: charset.cc,v 1.9 2001-08-08 14:26:54 Singular Exp $"; 5 5 ///////////////////////////////////////////////////////////// 6 6 // FACTORY - Includes … … 39 39 40 40 #ifdef SINGULAR 41 extern void WarnS(const char *); 42 #include "../../Singular/mod2.h" 43 #include "../../Singular/febase.h" 41 #define HAVE_SINGULAR_ERROR 42 #endif 43 44 #ifdef HAVE_SINGULAR_ERROR 45 extern "C" { void WerrorS(char *); } 46 extern "C" { void WarnS(const char *); } 44 47 #endif 45 48 … … 580 583 else 581 584 { 582 #ifdef SINGULAR583 //WarnS("libfac: Factoring over algebraic function field required!");585 #ifdef HAVE_SINGULAR_ERROR 586 WarnS("libfac: Factoring over algebraic function field required!"); 584 587 #else 585 588 #ifndef NOSTREAMIO … … 599 602 /* 600 603 $Log: not supported by cvs2svn $ 604 Revision 1.8 2001/08/06 08:32:53 Singular 605 * hannes: code cleanup 606 601 607 Revision 1.7 2001/06/27 13:58:06 Singular 602 608 *hannes/GP: debug newfactoras, char_series, ... -
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 -
libfac/factor/MVMultiHensel.cc
r14b1e65 r456842 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 // static char * rcsid = "$Id: MVMultiHensel.cc,v 1. 5 2001-08-08 11:59:12Singular Exp $";4 // static char * rcsid = "$Id: MVMultiHensel.cc,v 1.6 2001-08-08 14:26:55 Singular Exp $"; 5 5 /////////////////////////////////////////////////////////////////////////////// 6 6 // FACTORY - Includes … … 16 16 17 17 #ifdef SINGULAR 18 # define HAVE_SINGULAR 18 #define HAVE_SINGULAR_ERROR 19 #endif 20 21 #ifdef HAVE_SINGULAR_ERROR 19 22 extern "C" { void WerrorS(char *); } 20 23 #endif … … 109 112 // Degrees ok? degree(F1,mainvar) + degree(F2,mainvar) <= i ? 110 113 if ( (degree(F1,levelU) + degree(F2,levelU) ) <= i ) { 111 #ifdef HAVE_SINGULAR114 #ifdef factor/MVMultiHensel.cc 112 115 WerrorS("libfac: diophant ERROR: degree too large! "); 113 116 #else 117 #ifndef NOSTREAMIO 114 118 cerr << "libfac: diophant ERROR: degree too large! " 115 119 << (degree(F1,levelU) + degree(F2,levelU) ) <<endl; 120 #else 121 ; 122 #endif 116 123 #endif 117 124 Retvalue.One=F1;Retvalue.Two=F2; … … 123 130 // check if gcd(F1,F2) <> 1 , i.e. F1 and F2 are not relatively prime 124 131 if ( ! r.isOne() ){ 125 #ifdef HAVE_SINGULAR 132 #ifdef HAVE_SINGULAR_ERROR 126 133 WerrorS("libfac: diophant ERROR: F1 and F2 are not relatively prime! "); 127 134 #else … … 130 137 << " are not relatively prime!" << endl; 131 138 #else 132 cerr << "libfac: diophant ERROR: F1 and F2 are not relatively prime!" 133 << endl; 139 ; 134 140 #endif 135 141 #endif … … 405 411 /* 406 412 $Log: not supported by cvs2svn $ 413 Revision 1.5 2001/08/08 11:59:12 Singular 414 *hannes: Dan's NOSTREAMIO changes 415 407 416 Revision 1.4 1997/11/18 16:39:05 Singular 408 417 * hannes: moved WerrorS from C++ to C -
libfac/factor/SqrFree.cc
r14b1e65 r456842 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 static char * rcsid = "$Id: SqrFree.cc,v 1. 5 2001-08-08 11:59:13Singular Exp $";4 static char * rcsid = "$Id: SqrFree.cc,v 1.6 2001-08-08 14:26:56 Singular Exp $"; 5 5 static char * errmsg = "\nYou found a bug!\nPlease inform (Michael Messollen) michael@math.uni-sb.de .\n Please include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 6 6 /////////////////////////////////////////////////////////////////////////////// … … 17 17 18 18 #ifdef SINGULAR 19 # define HAVE_SINGULAR 19 #define HAVE_SINGULAR_ERROR 20 #endif 21 22 #ifdef HAVE_SINGULAR_ERROR 20 23 extern "C" { void WerrorS(char *); } 21 24 #endif … … 128 131 else return 0 ; 129 132 } 130 #ifdef HAVE_SINGULAR 133 #ifdef HAVE_SINGULAR_ERROR 131 134 WerrorS("libfac: ERROR: SqrFreeTest: we should never fall trough here!"); 132 135 #else 136 #ifndef NOSTREAMIO 133 137 cerr << "\nlibfac: ERROR: SqrFreeTest: we should never fall trough here!\n" 134 138 << rcsid << errmsg << endl; 139 #endif 135 140 #endif 136 141 return 0; … … 254 259 return Outputlist ; 255 260 } 256 #ifdef HAVE_SINGULAR 261 #ifdef HAVE_SINGULAR_ERROR 257 262 WerrorS("libfac: ERROR: SqrFreed: we should never fall trough here!"); 258 263 #else 264 #infdef NOSTREAMIO 259 265 cerr << "\nlibfac: ERROR: SqrFreed: we should never fall trough here!\n" 260 266 << rcsid << errmsg << endl; 267 #endif 261 268 #endif 262 269 DEBDECLEVEL(cout, "SqrFreed"); … … 334 341 /* 335 342 $Log: not supported by cvs2svn $ 343 Revision 1.5 2001/08/08 11:59:13 Singular 344 *hannes: Dan's NOSTREAMIO changes 345 336 346 Revision 1.4 1997/11/18 16:39:06 Singular 337 347 * hannes: moved WerrorS from C++ to C
Note: See TracChangeset
for help on using the changeset viewer.