aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Product.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-05-14 08:55:56 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-05-14 08:55:56 +0200
commit0f3bcf853f3bed0f85079b77b4e92905b2ad0305 (patch)
tree85d7941684de350dd50852ecb815875529971640 /Eigen/src/Core/Product.h
parent6d08301dccca100d0ba75345a6fab88d22232847 (diff)
fix mixing types in inner product
Diffstat (limited to 'Eigen/src/Core/Product.h')
-rw-r--r--Eigen/src/Core/Product.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h
index e4b9b4d69..22240b37a 100644
--- a/Eigen/src/Core/Product.h
+++ b/Eigen/src/Core/Product.h
@@ -163,7 +163,7 @@ struct ProductReturnType<Lhs,Rhs,LazyCoeffBasedProductMode>
template<typename Lhs, typename Rhs>
struct ei_traits<GeneralProduct<Lhs,Rhs,InnerProduct> >
- : ei_traits<Matrix<typename Lhs::Scalar,1,1> >
+ : ei_traits<Matrix<typename ei_scalar_product_traits<typename Lhs::Scalar, typename Rhs::Scalar>::ReturnType,1,1> >
{};
template<typename Lhs, typename Rhs>
@@ -432,8 +432,8 @@ inline const typename ProductReturnType<Derived,OtherDerived>::Type
MatrixBase<Derived>::operator*(const MatrixBase<OtherDerived> &other) const
{
// A note regarding the function declaration: In MSVC, this function will sometimes
- // not be inlined since ei_matrix_storage is an unwindable object for dynamic
- // matrices and product types are holding a member to store the result.
+ // not be inlined since ei_matrix_storage is an unwindable object for dynamic
+ // matrices and product types are holding a member to store the result.
// Thus it does not help tagging this function with EIGEN_STRONG_INLINE.
enum {
ProductIsValid = Derived::ColsAtCompileTime==Dynamic