Changeset 38bb4c in git for factory


Ignore:
Timestamp:
Mar 27, 1997, 10:34:59 AM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '82fc009ea2b0098c1a4896c841bb70860976bdfc')
Children:
4393f610eaeba2ada7a840e5fc6196a1e5af0940
Parents:
3a3fce2f74ca58f98b7d975613f96b97f81dfaa3
Message:
debug output changed to DEBOUT


git-svn-id: file:///usr/local/Singular/svn/trunk@93 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/fac_berlekamp.cc

    r3a3fce r38bb4c  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: fac_berlekamp.cc,v 1.0 1996-05-17 10:59:45 stobbe Exp $
     2// $Id: fac_berlekamp.cc,v 1.1 1997-03-27 09:34:59 schmidt Exp $
    33
    44/*
    55$Log: not supported by cvs2svn $
     6Revision 1.0  1996/05/17 10:59:45  stobbe
     7Initial revision
     8
    69*/
    7 
    810#include "assert.h"
     11#include "debug.h"
     12
    913#include "cf_defs.h"
     14
    1015#include "fac_berlekamp.h"
    1116#include "ffops.h"
     
    1722#include "fac_sqrfree.h"
    1823#include "cf_util.h"
     24
     25#ifdef DEBUGOUTPUT
     26void 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
     38void 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 */
    1950
    2051void QmatFF ( const CanonicalForm & f, int ** Q, int p )
     
    176207}
    177208
    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 
    200209CanonicalForm cfFromIntVec( int * a, int n, const Variable & x )
    201210{
     
    230239        Q[i] = new int[n];
    231240    QmatFF( f, Q, p );
    232 //    QprintFF( Q, n );
     241#ifdef DEBUGOUTPUT
     242    DEBOUTLN( cerr, "Q = ", ' ' );
     243    QprintFF( Q, n );
     244#endif /* DEBUGOUTPUT */
    233245    k = nullSpaceFF( Q, B, n );
    234 //    QprintFF( Q, n );
     246#ifdef DEBUGOUTPUT
     247    DEBOUTLN( cerr, "Q = ", ' ' );
     248    QprintFF( Q, n );
     249#endif /* DEBUGOUTPUT */
    235250    F.insert( CFFactor( f, 1 ) );
    236251    r = 1;
     
    275290        Q[i] = new int[n];
    276291    QmatGF( f, Q, gf_q );
    277 //    QprintGF( Q, n );
     292#ifdef DEBUGOUTPUT
     293    DEBOUTLN( cerr, "Q = ", ' ' );
     294    QprintGF( Q, n );
     295#endif /* DEBUGOUTPUT */
    278296    k = nullSpaceGF( Q, B, n );
    279 //    QprintFF( Q, n );
     297#ifdef DEBUGOUTPUT
     298    DEBOUTLN( cerr, "Q = ", ' ' );
     299    QprintFF( Q, n );
     300#endif /* DEBUGOUTPUT */
    280301    F.insert( CFFactor( f, 1 ) );
    281302    r = 1;
Note: See TracChangeset for help on using the changeset viewer.