Skip to content

Commit

Permalink
Merge pull request #3834 from pleroy/Clang
Browse files Browse the repository at this point in the history
Use a deduction guide to fix errors found by Clang
  • Loading branch information
pleroy authored Jan 3, 2024
2 parents 43b413c + ccf825d commit 39a61df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion numerics/matrix_computations_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ struct HouseholderReflection {

template<typename Vector>
HouseholderReflection ComputeHouseholderReflection(Vector const& x) {
int const m = x.size();
// In order to avoid issues with quantities, we start by normalizing x. This
// implies that μ is 1.
auto const normalized_x = Normalize(x);
Expand Down
3 changes: 3 additions & 0 deletions numerics/transposed_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ struct TransposedView {
T const& transpose;
};

template<class T>
TransposedView(T) -> TransposedView<T>;

} // namespace internal

using internal::TransposedView;
Expand Down

0 comments on commit 39a61df

Please sign in to comment.