Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TeachRaccooon committed Nov 17, 2023
1 parent 5400b11 commit eacf715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RandLAPACK/drivers/rl_cqrrpt.hh
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ int CQRRPT<T, RNG>::call(

for(i = 0; i < k; ++i) {
curr_entry = std::abs(R_sp[i * k + i]);
if(curr_entry > running_max) running_max = curr_entry;
if(curr_entry < running_min) running_min = running_max;
running_max = std::max(running_max, curr_entry);
running_min = std::min(running_min, curr_entry);
if(running_max / running_min >= std::sqrt(this->eps / std::numeric_limits<T>::epsilon())) {
new_rank = i - 1;
break;
Expand Down

0 comments on commit eacf715

Please sign in to comment.