Changeset 9b87a3 in git
- Timestamp:
- Apr 8, 2008, 6:19:10 PM (15 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- f307021ad1ffaabeac4f3f688f2140c724143680
- Parents:
- 6ad5ce630be2eb27e4e1453cd679e97bca10deaa
- Location:
- libfac
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
libfac/charset/alg_factor.cc
r6ad5ce r9b87a3 3 3 // emacs edit mode for this file is -*- C++ -*- 4 4 //////////////////////////////////////////////////////////// 5 /* $Id: alg_factor.cc,v 1.2 2 2008-03-18 17:46:14Singular Exp $ */5 /* $Id: alg_factor.cc,v 1.23 2008-04-08 16:19:09 Singular Exp $ */ 6 6 //////////////////////////////////////////////////////////// 7 7 // FACTORY - Includes … … 678 678 success=1; 679 679 DEBINCLEVEL(CERR, "newfactoras"); 680 DEBOUTMSG(CERR, rcsid);681 680 DEBOUTLN(CERR, "newfactoras called with f= ", f); 682 681 DEBOUTLN(CERR, " content(f)= ", content(f)); … … 830 829 /* 831 830 $Log: not supported by cvs2svn $ 831 Revision 1.22 2008/03/18 17:46:14 Singular 832 *hannes: gcc 4.2 833 832 834 Revision 1.21 2008/03/17 17:44:15 Singular 833 835 *hannes: fact.tst -
libfac/charset/algfactor.cc
r6ad5ce r9b87a3 3 3 // emacs edit mode for this file is -*- C++ -*- 4 4 //////////////////////////////////////////////////////////// 5 /* $Id: algfactor.cc,v 1.1 1 2008-03-18 17:46:14Singular Exp $ */5 /* $Id: algfactor.cc,v 1.12 2008-04-08 16:19:09 Singular Exp $ */ 6 6 //////////////////////////////////////////////////////////// 7 7 // FACTORY - Includes … … 193 193 194 194 DEBINCLEVEL(CERR, "factoras"); 195 DEBOUTMSG(CERR, rcsid);196 195 DEBOUTLN(CERR, "factoras called with f= ", f); 197 196 DEBOUTLN(CERR, " content(f)= ", content(f)); … … 450 449 /* 451 450 $Log: not supported by cvs2svn $ 451 Revision 1.11 2008/03/18 17:46:14 Singular 452 *hannes: gcc 4.2 453 452 454 Revision 1.10 2008/03/17 17:44:16 Singular 453 455 *hannes: fact.tst -
libfac/charset/charset.cc
r6ad5ce r9b87a3 2 2 //////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 /* $Id: charset.cc,v 1.1 3 2008-03-18 17:46:14Singular Exp $ */4 /* $Id: charset.cc,v 1.14 2008-04-08 16:19:09 Singular Exp $ */ 5 5 ///////////////////////////////////////////////////////////// 6 6 // FACTORY - Includes … … 384 384 #endif 385 385 386 DEBOUTMSG(CERR, rcsid);387 386 // CERR << getCharacteristic() << "\n"; 388 387 for ( CFListIterator Ps=PS; Ps.hasItem(); Ps++ ) … … 599 598 /* 600 599 $Log: not supported by cvs2svn $ 600 Revision 1.13 2008/03/18 17:46:14 Singular 601 *hannes: gcc 4.2 602 601 603 Revision 1.12 2006/06/14 15:35:08 Singular 602 604 *hannes: CS renamed -
libfac/charset/csutil.cc
r6ad5ce r9b87a3 2 2 //////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 /* $Id: csutil.cc,v 1.1 7 2008-03-18 17:46:15Singular Exp $ */4 /* $Id: csutil.cc,v 1.18 2008-04-08 16:19:10 Singular Exp $ */ 5 5 ///////////////////////////////////////////////////////////// 6 6 // FACTORY - Includes … … 629 629 // AS is given by AS = { A1, A2, .. Ar }, d_i = degree(Ai) 630 630 631 DEBOUTMSG(CERR, rcsid);632 631 // 1) we test: if d_i > 1, d_j =1 for all j<>i, then AS is irreducible. 633 632 bool deg1=true; … … 988 987 /* 989 988 $Log: not supported by cvs2svn $ 989 Revision 1.17 2008/03/18 17:46:15 Singular 990 *hannes: gcc 4.2 991 990 992 Revision 1.16 2008/02/22 12:16:02 Singular 991 993 hannes: genZero ->isZero -
libfac/charset/reorder.cc
r6ad5ce r9b87a3 12 12 ///////////////////////////////////////////////////////////// 13 13 // emacs edit mode for this file is -*- C++ -*- 14 /* $Id: reorder.cc,v 1. 5 2008-03-18 17:46:15Singular Exp $ */14 /* $Id: reorder.cc,v 1.6 2008-04-08 16:19:10 Singular Exp $ */ 15 15 //////////////////////////////////////////////////////////// 16 16 // FACTORY - Includes … … 274 274 275 275 DEBINCLEVEL(CERR, "neworder"); 276 DEBOUTMSG(CERR, rcsid);277 276 TIMING_START(neworder_time); 278 277 … … 408 407 /* 409 408 $Log: not supported by cvs2svn $ 409 Revision 1.5 2008/03/18 17:46:15 Singular 410 *hannes: gcc 4.2 411 410 412 Revision 1.4 2006/05/16 14:46:49 Singular 411 413 *hannes: gcc 4.1 fixes -
libfac/factor/Factor.cc
r6ad5ce r9b87a3 1 1 /* Copyright 1996 Michael Messollen. All rights reserved. */ 2 2 /////////////////////////////////////////////////////////////////////////////// 3 /* $Id: Factor.cc,v 1.4 4 2008-03-18 17:46:15Singular Exp $ */3 /* $Id: Factor.cc,v 1.45 2008-04-08 16:19:10 Singular Exp $ */ 4 4 static const char * errmsg = "\nYou found a bug!\nPlease inform singular@mathematik.uni-kl.de\nPlease include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 5 5 /////////////////////////////////////////////////////////////////////////////// … … 300 300 #ifndef NOSTREAMIO 301 301 CERR << "libfac: ERROR: not_monic1: case lt is a sum.\n" 302 << rcsid <<errmsg << "\n";302 << errmsg << "\n"; 303 303 #endif 304 304 #endif … … 320 320 #ifndef NOSTREAMIO 321 321 CERR << "libfac: ERROR: not_monic2: case lt is a sum.\n" 322 << rcsid <<errmsg << "\n";322 << errmsg << "\n"; 323 323 #endif 324 324 #endif … … 524 524 #ifndef NOSTREAMIO 525 525 CERR << "libfac: spezializePoly ERROR: Working over given extension-field not yet implemented!\n" 526 << rcsid <<errmsg << "\n";526 << errmsg << "\n"; 527 527 #endif 528 528 #endif … … 774 774 #ifndef NOSTREAMIO 775 775 CERR << "libfac: Factorize: ERROR: Not able to find a valid specialization!\n" 776 << rcsid <<errmsg << "\n";776 << errmsg << "\n"; 777 777 #else 778 778 ; … … 892 892 893 893 DEBINCLEVEL(CERR, "Factorize"); 894 DEBOUTMSG(CERR, rcsid);895 894 DEBOUTLN(CERR, "Called with F= ", F); 896 895 if ( getCharacteristic() == 0 ) … … 911 910 // search an "optimal" main variavble 912 911 int mv=F.level(); 913 if ( mv != LEVELBASE && ! F.isUnivariate() )912 if ((mv != LEVELBASE) && (! F.isUnivariate()) ) 914 913 { 915 914 mv=find_mvar(F); … … 1151 1150 1152 1151 DEBINCLEVEL(CERR, "Factorize"); 1153 DEBOUTMSG(CERR, rcsid);1154 1152 DEBOUTLN(CERR, "Called with F= ", F); 1155 1153 if ( getCharacteristic() == 0 ) … … 1335 1333 /* 1336 1334 $Log: not supported by cvs2svn $ 1335 Revision 1.44 2008/03/18 17:46:15 Singular 1336 *hannes: gcc 4.2 1337 1337 1338 Revision 1.43 2008/03/18 10:12:21 Singular 1338 1339 *hannes: format -
libfac/factor/SqrFree.cc
r6ad5ce r9b87a3 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 // emacs edit mode for this file is -*- C++ -*- 4 /* $Id: SqrFree.cc,v 1.1 7 2008-03-18 17:46:15Singular Exp $ */4 /* $Id: SqrFree.cc,v 1.18 2008-04-08 16:19:10 Singular Exp $ */ 5 5 static const char * errmsg = "\nYou found a bug!\nPlease inform singular@mathematik.uni-kl.de\n Please include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you."; 6 6 /////////////////////////////////////////////////////////////////////////////// … … 200 200 #ifndef NOSTREAMIO 201 201 CERR << "\nlibfac: ERROR: SqrFreeTest: we should never fall trough here!\n" 202 << rcsid <<errmsg << "\n";202 << errmsg << "\n"; 203 203 #endif 204 204 #endif … … 352 352 #ifndef NOSTREAMIO 353 353 CERR << "\nlibfac: ERROR: SqrFreed: we should never fall trough here!\n" 354 << rcsid <<errmsg << "\n";354 << errmsg << "\n"; 355 355 #endif 356 356 #endif … … 370 370 371 371 DEBINCLEVEL(CERR, "SqrFreeMV"); 372 DEBOUTMSG(CERR, rcsid);373 372 DEBOUTLN(CERR,"Called with f= ", f); 374 373 … … 440 439 /* 441 440 $Log: not supported by cvs2svn $ 441 Revision 1.17 2008/03/18 17:46:15 Singular 442 *hannes: gcc 4.2 443 442 444 Revision 1.16 2008/03/18 10:12:59 Singular 443 445 *hannes: typo -
libfac/factor/homogfactor.cc
r6ad5ce r9b87a3 1 1 /* Copyright 1997 Michael Messollen. All rights reserved. */ 2 2 //////////////////////////////////////////////////////////// 3 // $Id: homogfactor.cc,v 1. 9 2008-03-18 17:46:16Singular Exp $3 // $Id: homogfactor.cc,v 1.10 2008-04-08 16:19:10 Singular Exp $ 4 4 //////////////////////////////////////////////////////////// 5 5 // FACTORY - Includes … … 142 142 DEBINCLEVEL(CERR, "HomogFactor"); 143 143 Variable xn = get_max_degree_Variable(g); 144 out_cf("HomogFactor:",g,"\n"); 144 145 int d_xn = degree(g,xn); 145 146 CanonicalForm F = g(1,xn); … … 148 149 DEBOUTLN(CERR, "d_xn= ", d_xn); 149 150 DEBOUTLN(CERR, "F= ", F); 151 out_cf("HomogFactor:subst ",F,"\n"); 150 152 151 153 // should we do this for low degree polys g ? e.g. quadratic? … … 157 159 { 158 160 CFMap n; 159 Intermediatelist = Factorized(compress(F,n), minpoly, Mainvar); 161 if (minpoly.isZero()) 162 Intermediatelist = Factorize(compress(F,n), 1); 163 else 164 Intermediatelist = Factorized(compress(F,n), minpoly, Mainvar); 160 165 for ( j=Intermediatelist; j.hasItem(); j++ ) 161 166 Homoglist.append(CFFactor( n(j.getItem().factor()), j.getItem().exp()) ); 162 167 } 163 168 else 164 Homoglist = Factorize2(F, minpoly); 169 { 170 if (minpoly.isZero()) 171 Homoglist = factorize(F); 172 else 173 Homoglist = Factorize2(F,minpoly); 174 } 165 175 // Now we have uncompressed factors in Homoglist 166 176 DEBOUTLN(CERR, "F factors as: ", Homoglist); 167 177 CFFList Unhomoglist; 168 178 CanonicalForm unhomogelem; 169 if ((! minpoly.isZero()) &&(getCharacteristic() == 0) )179 if ((!(minpoly.isZero())) &&(getCharacteristic() == 0) ) 170 180 { 171 181 for ( j=Homoglist; j.hasItem(); j++ ) … … 187 197 unhomogelem= homogenize(j.getItem().factor(),xn); 188 198 DEBOUTLN(CERR, " that is ", unhomogelem); 199 out_cf("unhomogelem:",unhomogelem,"\n"); 189 200 Unhomoglist.append(CFFactor(unhomogelem,j.getItem().exp())); 190 201 d_xn -= degree(unhomogelem,xn)*j.getItem().exp(); … … 201 212 /* 202 213 $Log: not supported by cvs2svn $ 214 Revision 1.9 2008/03/18 17:46:16 Singular 215 *hannes: gcc 4.2 216 203 217 Revision 1.8 2007/10/25 14:45:41 Singular 204 218 *hannes: homgfactor for alg.ext of Q
Note: See TracChangeset
for help on using the changeset viewer.