Show
Ignore:
Timestamp:
03/11/08 17:50:02 (10 months ago)
Author:
pernet
Message:

Apply fixes related to sage ticket #2453

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • include/fflas-ffpack/ffpack_frobenius.inl

    r48 r58  
    4646                for (size_t j = 0; j < N; ++j) 
    4747                        g.random( *(K + i*ldk +j) ); 
    48  
     48        for (size_t i = 0; i < noc; ++i) 
     49                g.nonzerorandom (*(K + i*ldk +i)); 
     50         
    4951        // Computing the bloc Krylov matrix [U AU .. A^(c-1) U]^T 
    5052        for (size_t i = 1; i<c; ++i) 
     
    8082                while ( (d<c) && (row_idx<R) && (Qk[row_idx] == i)) {i++; row_idx++; d++;} 
    8183                if (d > dold){ 
    82                         std::cerr << "FAIL in preconditionning phase:" 
    83                              << " degree sequence is not monotonically not increasing" 
    84                              << std::endl; 
     84                        // std::cerr << "FAIL in preconditionning phase:" 
     85                        //           << " degree sequence is not monotonically not increasing" 
     86                        //           << std::endl; 
    8587                        throw CharpolyFailed(); 
    8688                } 
     
    127129                        for (size_t j = offset+1; j<R; ++j) 
    128130                                if (!F.isZero(*(K2b + i*ldk + j))){ 
    129                                         std::cerr<<"FAIL C != 0 in preconditionning"<<std::endl; 
     131                                        //std::cerr<<"FAIL C != 0 in preconditionning"<<std::endl; 
    130132                                        throw CharpolyFailed(); 
    131133                                } 
     
    224226                size_t R = SpecRankProfile (F, Ma, Ncurr, Arp, ldarp, deg-1, rp); 
    225227                if (R < Ncurr){ 
    226                         std::cerr<<"FAIL R<Ncurr"<<std::endl; 
     228                        //std::cerr<<"FAIL R<Ncurr"<<std::endl; 
    227229                        throw CharpolyFailed(); 
    228230                } 
     
    240242                        if ((block_idx)&&(it_idx > dK[block_idx-1])){ 
    241243                                throw CharpolyFailed(); 
    242                                 std::cerr<<"FAIL d non decroissant"<<std::endl; 
     244                                //std::cerr<<"FAIL d non decroissant"<<std::endl; 
    243245                                //exit(-1); 
    244246                        } 
     
    312314                if (LUdivine (F, FflasNonUnit, FflasNoTrans, Mk, Mk , K2 + (Ncurr-Mk)*ldk, ldk, P, Q, FfpackLQUP) < Mk){ 
    313315                        // should never happen (not a LAS VEGAS check) 
    314                         std::cerr<<"FAIL R2 < MK"<<std::endl; 
     316                        //std::cerr<<"FAIL R2 < MK"<<std::endl; 
    315317                        //                      exit(-1); 
    316318                } 
     
    353355                        for (size_t j=0; j<nb_full_blocks+1; ++j){ 
    354356                                if (!F.isZero( *(K+i*ldk+j) )){ 
    355                                         std::cerr<<"FAIL C != 0"<<std::endl; 
     357                                        //std::cerr<<"FAIL C != 0"<<std::endl; 
    356358                                        throw CharpolyFailed(); 
    357359                                }