Skip to content

Commit

Permalink
fix problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Aug 17, 2024
1 parent 163d8b6 commit 22b2fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions btas/generic/converge_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ namespace btas {

auto fit = 0.0;
if(iter_ == 0) {
fit_prev_ = sqrt(norm(btas_factors, btas_factors, rank_));
norm_prev_ = fit_prev_;
fit_prev_ = (norm(btas_factors, btas_factors, rank_));
norm_prev_ = sqrt(fit_prev_);
prev_factors = btas_factors;
// diff = reconstruct(btas_factors, orders);
if (verbose_) {
Expand All @@ -531,7 +531,7 @@ namespace btas {
// fit = norm(diff);
// diff = tnew;
fit_prev_ = curr_norm;
norm_prev_ = curr_norm;
norm_prev_ = sqrt(curr_norm);
prev_factors = btas_factors;

if (verbose_) {
Expand Down

0 comments on commit 22b2fcf

Please sign in to comment.