Skip to content

Commit

Permalink
Indicate no-aliasing when realizing RHS into a buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jul 3, 2024
1 parent 78e6a6c commit 9619dfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/irlba/parallel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class ParallelSparseMatrix {
if constexpr(std::is_same<Right_, EigenVector_>::value) {
return rhs;
} else {
work.buffer = rhs;
work.buffer.noalias() = rhs;
return work.buffer;
}
}();
Expand All @@ -374,7 +374,7 @@ class ParallelSparseMatrix {
if constexpr(std::is_same<Right_, EigenVector_>::value) {
return rhs;
} else {
work.buffer = rhs;
work.buffer.noalias() = rhs;
return work.buffer;
}
}();
Expand Down
4 changes: 2 additions & 2 deletions include/irlba/wrappers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class Centered {
if constexpr(std::is_same<Right_, EigenVector_>::value) {
return rhs;
} else {
work.buffer = rhs;
work.buffer.noalias() = rhs;
return work.buffer;
}
}();
Expand All @@ -266,7 +266,7 @@ class Centered {
if constexpr(std::is_same<Right_, EigenVector_>::value) {
return rhs;
} else {
work.buffer = rhs;
work.buffer.noalias() = rhs;
return work.buffer;
}
}();
Expand Down

0 comments on commit 9619dfc

Please sign in to comment.