Changeset 38bb4c in git
- Timestamp:
- Mar 27, 1997, 10:34:59 AM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 4393f610eaeba2ada7a840e5fc6196a1e5af0940
- Parents:
- 3a3fce2f74ca58f98b7d975613f96b97f81dfaa3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/fac_berlekamp.cc
r3a3fce r38bb4c 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fac_berlekamp.cc,v 1. 0 1996-05-17 10:59:45 stobbeExp $2 // $Id: fac_berlekamp.cc,v 1.1 1997-03-27 09:34:59 schmidt Exp $ 3 3 4 4 /* 5 5 $Log: not supported by cvs2svn $ 6 Revision 1.0 1996/05/17 10:59:45 stobbe 7 Initial revision 8 6 9 */ 7 8 10 #include "assert.h" 11 #include "debug.h" 12 9 13 #include "cf_defs.h" 14 10 15 #include "fac_berlekamp.h" 11 16 #include "ffops.h" … … 17 22 #include "fac_sqrfree.h" 18 23 #include "cf_util.h" 24 25 #ifdef DEBUGOUTPUT 26 void QprintFF( int ** Q, int n ) 27 { 28 for ( int i = 0; i < n; i++ ) { 29 for ( int j = 0; j < n; j++ ) 30 cerr << Q[i][j] << " "; 31 cerr << endl; 32 } 33 cerr << endl; 34 } 35 #endif /* DEBUGOUTPUT */ 36 37 #ifdef DEBUGOUTPUT 38 void QprintGF( int ** Q, int n ) 39 { 40 for ( int i = 0; i < n; i++ ) { 41 for ( int j = 0; j < n; j++ ) { 42 gf_print( cerr, Q[i][j] ); 43 cerr << " "; 44 } 45 cerr << endl; 46 } 47 cerr << endl; 48 } 49 #endif /* DEBUGOUTPUT */ 19 50 20 51 void QmatFF ( const CanonicalForm & f, int ** Q, int p ) … … 176 207 } 177 208 178 void QprintFF( int ** Q, int n )179 {180 for ( int i = 0; i < n; i++ ) {181 for ( int j = 0; j < n; j++ )182 cerr << Q[i][j] << " ";183 cerr << endl;184 }185 cerr << endl;186 }187 188 void QprintGF( int ** Q, int n )189 {190 for ( int i = 0; i < n; i++ ) {191 for ( int j = 0; j < n; j++ ) {192 gf_print( cerr, Q[i][j] );193 cerr << " ";194 }195 cerr << endl;196 }197 cerr << endl;198 }199 200 209 CanonicalForm cfFromIntVec( int * a, int n, const Variable & x ) 201 210 { … … 230 239 Q[i] = new int[n]; 231 240 QmatFF( f, Q, p ); 232 // QprintFF( Q, n ); 241 #ifdef DEBUGOUTPUT 242 DEBOUTLN( cerr, "Q = ", ' ' ); 243 QprintFF( Q, n ); 244 #endif /* DEBUGOUTPUT */ 233 245 k = nullSpaceFF( Q, B, n ); 234 // QprintFF( Q, n ); 246 #ifdef DEBUGOUTPUT 247 DEBOUTLN( cerr, "Q = ", ' ' ); 248 QprintFF( Q, n ); 249 #endif /* DEBUGOUTPUT */ 235 250 F.insert( CFFactor( f, 1 ) ); 236 251 r = 1; … … 275 290 Q[i] = new int[n]; 276 291 QmatGF( f, Q, gf_q ); 277 // QprintGF( Q, n ); 292 #ifdef DEBUGOUTPUT 293 DEBOUTLN( cerr, "Q = ", ' ' ); 294 QprintGF( Q, n ); 295 #endif /* DEBUGOUTPUT */ 278 296 k = nullSpaceGF( Q, B, n ); 279 // QprintFF( Q, n ); 297 #ifdef DEBUGOUTPUT 298 DEBOUTLN( cerr, "Q = ", ' ' ); 299 QprintFF( Q, n ); 300 #endif /* DEBUGOUTPUT */ 280 301 F.insert( CFFactor( f, 1 ) ); 281 302 r = 1;
Note: See TracChangeset
for help on using the changeset viewer.