Skip to content

Commit

Permalink
Merge pull request #3056 from MRtrix3/dwi2tensor_iter1_fix
Browse files Browse the repository at this point in the history
dwi2tensor: fix operation with -iter 1
  • Loading branch information
Lestropie authored Feb 7, 2025
2 parents 45d970a + 2e54543 commit 818a542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dwi2tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Processor { MEMALIGN(Processor)
work.setZero();
work.selfadjointView<Eigen::Lower>().rankUpdate (b.transpose()*w.asDiagonal());
p = llt.compute (work.selfadjointView<Eigen::Lower>()).solve(b.transpose()*w.asDiagonal()*w.asDiagonal()*dwi);
if (maxit > 1)
if (it < maxit)
w = (b*p).array().exp();
}

Expand Down
2 changes: 1 addition & 1 deletion testing/binaries/data

0 comments on commit 818a542

Please sign in to comment.