diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2021-01-01 20:54:45 +0100 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2021-01-05 18:15:30 +0000 |
commit | 12dda34b15fe2ea4d994fafdba8c4666963e1a55 (patch) | |
tree | fc1d5f1c879b229b9421af3d0a8fe76302551eb8 /Eigen/src/Core/ProductEvaluators.h | |
parent | 070d303d56d46d2e018a58214da24ca629ea454f (diff) |
Eliminate boolean product warnings by factoring out a
`combine_scalar_factors` helper function.
Diffstat (limited to 'Eigen/src/Core/ProductEvaluators.h')
-rw-r--r-- | Eigen/src/Core/ProductEvaluators.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h index 02b58438c..079189a10 100644 --- a/Eigen/src/Core/ProductEvaluators.h +++ b/Eigen/src/Core/ProductEvaluators.h @@ -441,8 +441,8 @@ struct generic_product_impl<Lhs,Rhs,DenseShape,DenseShape,CoeffBasedProductMode> }; // FIXME: in c++11 this should be auto, and extractScalarFactor should also return auto // this is important for real*complex_mat - Scalar actualAlpha = blas_traits<Lhs>::extractScalarFactor(lhs) - * blas_traits<Rhs>::extractScalarFactor(rhs); + Scalar actualAlpha = combine_scalar_factors<Scalar>(lhs, rhs); + eval_dynamic_impl(dst, blas_traits<Lhs>::extract(lhs).template conjugateIf<ConjLhs>(), blas_traits<Rhs>::extract(rhs).template conjugateIf<ConjRhs>(), |