Changeset 2985

Show
Ignore:
Timestamp:
07/02/08 06:34:35 (2 months ago)
Author:
dumas
Message:

optimied out some unnecessary tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/linbox/linbox/algorithms/gauss.inl

    r2619 r2985  
    55 * 
    66 * Written by Jean-Guillaume Dumas <Jean-Guillaume.Dumas@imag.fr> 
    7  * Time-stamp: <09 Feb 07 11:25:51 Jean-Guillaume.Dumas@imag.fr>  
     7 * Time-stamp: <23 May 08 09:52:20 Jean-Guillaume.Dumas@imag.fr>  
    88 * 
    99 * ----------------------------------------------------------- 
     
    153153                            _F.mul (tmp, headcoeff, lignepivot[l].second); 
    154154 
    155                             if (! _F.isZero (tmp)) { 
     155//                             if (! _F.isZero (tmp)) { 
    156156                                ++columns[j_piv]; 
    157157                                construit[j++] = E (j_piv, tmp); 
    158                             } 
     158//                             } else  
     159//                                 std::cerr << "NEVER HAPPENED" << std::endl; 
     160                       
    159161                        } 
    160162 
     
    346348                            Element tmp; 
    347349                            _F.mul (tmp, headcoeff, lignepivot[l].second); 
    348                             if (! _F.isZero (tmp)) 
     350//                             if (! _F.isZero (tmp)) 
    349351                                construit[j++] = E (j_piv, tmp); 
     352//                             else 
     353//                                 std::cerr << "NEVER HAPPENED" << std::endl; 
    350354                        } 
    351355                        l++; 
     
    481485                                               Element          &determinant) 
    482486    { 
    483  //        std::cerr << "SFP BEG : lignepivot: ["; 
     487  
     488//        std::cerr << "SFP BEG : lignepivot: ["; 
    484489//         for(typename Vector::const_iterator refs =  lignepivot.begin(); 
    485490//             refs != lignepivot.end() ; 
     
    490495 
    491496        long nj =  lignepivot.size (); 
     497 
    492498        bool pivoting = false; 
    493499 
     
    647653                    commentator.report (Commentator::LEVEL_IMPORTANT, PARTIAL_RESULT) 
    648654                        << "Fillin (" << indcol << "/" << Ni << ") = " 
    649                         << sl << std::endl; 
     655                        << sl  
     656                        << " (" << double(sl)*100.0/double(Ni-k)/double(Nj-k) << "%, " 
     657                        << double(sl)/double(Ni-k) << " avg)" 
     658                        << std::endl; 
    650659#endif  
    651660                } 
    652661             
    653662                if (s) { 
     663                        // Row permutation for the sparsest row 
    654664                    for (l = k + 1; l < Ni; ++l) 
    655665                        if (((sl = LigneA[l].size ()) < s) && (sl)) { 
     
    696706             
    697707            commentator.report (Commentator::LEVEL_IMPORTANT, PARTIAL_RESULT) 
    698                 << "Fillin (" << indcol << "/" << Ni << ") = " << sl << std::endl; 
     708                << "Fillin (" << indcol << "/" << Ni << ") = " << sl  
     709                << std::endl; 
    699710#endif 
    700711