Skip to content

Commit

Permalink
Merge pull request #3838 from pleroy/Clang
Browse files Browse the repository at this point in the history
Fix a dangling reference
  • Loading branch information
pleroy authored Jan 6, 2024
2 parents 54b41ae + 21c533c commit a1b5391
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numerics/matrix_computations_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ void Premultiply(HouseholderReflection const& P, Matrix& A) {
// A becomes A P.
template<typename Matrix>
void PostMultiply(Matrix& A, HouseholderReflection const& P) {
auto const βᵗv = TransposedView{P.β * P.v}; // NOLINT
auto const βv = P.β * P.v;
auto const βᵗv = TransposedView{βv}; // NOLINT
auto const Av = A * P.v;
A -= Av * βᵗv;
}
Expand Down

0 comments on commit a1b5391

Please sign in to comment.