Changeset 2985 for trunk/linbox/linbox/algorithms/gauss.inl
- Timestamp:
- 07/02/08 06:34:35 (5 months ago)
- Files:
-
- 1 modified
-
trunk/linbox/linbox/algorithms/gauss.inl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/linbox/linbox/algorithms/gauss.inl
r2619 r2985 5 5 * 6 6 * Written by Jean-Guillaume Dumas <Jean-Guillaume.Dumas@imag.fr> 7 * Time-stamp: < 09 Feb 07 11:25:51Jean-Guillaume.Dumas@imag.fr>7 * Time-stamp: <23 May 08 09:52:20 Jean-Guillaume.Dumas@imag.fr> 8 8 * 9 9 * ----------------------------------------------------------- … … 153 153 _F.mul (tmp, headcoeff, lignepivot[l].second); 154 154 155 if (! _F.isZero (tmp)) {155 // if (! _F.isZero (tmp)) { 156 156 ++columns[j_piv]; 157 157 construit[j++] = E (j_piv, tmp); 158 } 158 // } else 159 // std::cerr << "NEVER HAPPENED" << std::endl; 160 159 161 } 160 162 … … 346 348 Element tmp; 347 349 _F.mul (tmp, headcoeff, lignepivot[l].second); 348 if (! _F.isZero (tmp))350 // if (! _F.isZero (tmp)) 349 351 construit[j++] = E (j_piv, tmp); 352 // else 353 // std::cerr << "NEVER HAPPENED" << std::endl; 350 354 } 351 355 l++; … … 481 485 Element &determinant) 482 486 { 483 // std::cerr << "SFP BEG : lignepivot: ["; 487 488 // std::cerr << "SFP BEG : lignepivot: ["; 484 489 // for(typename Vector::const_iterator refs = lignepivot.begin(); 485 490 // refs != lignepivot.end() ; … … 490 495 491 496 long nj = lignepivot.size (); 497 492 498 bool pivoting = false; 493 499 … … 647 653 commentator.report (Commentator::LEVEL_IMPORTANT, PARTIAL_RESULT) 648 654 << "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; 650 659 #endif 651 660 } 652 661 653 662 if (s) { 663 // Row permutation for the sparsest row 654 664 for (l = k + 1; l < Ni; ++l) 655 665 if (((sl = LigneA[l].size ()) < s) && (sl)) { … … 696 706 697 707 commentator.report (Commentator::LEVEL_IMPORTANT, PARTIAL_RESULT) 698 << "Fillin (" << indcol << "/" << Ni << ") = " << sl << std::endl; 708 << "Fillin (" << indcol << "/" << Ni << ") = " << sl 709 << std::endl; 699 710 #endif 700 711
