mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 12:46:00 +08:00
fix mixing types in inner product
This commit is contained in:
parent
6d08301dcc
commit
0f3bcf853f
@ -163,7 +163,7 @@ struct ProductReturnType<Lhs,Rhs,LazyCoeffBasedProductMode>
|
|||||||
|
|
||||||
template<typename Lhs, typename Rhs>
|
template<typename Lhs, typename Rhs>
|
||||||
struct ei_traits<GeneralProduct<Lhs,Rhs,InnerProduct> >
|
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>
|
template<typename Lhs, typename Rhs>
|
||||||
@ -432,8 +432,8 @@ inline const typename ProductReturnType<Derived,OtherDerived>::Type
|
|||||||
MatrixBase<Derived>::operator*(const MatrixBase<OtherDerived> &other) const
|
MatrixBase<Derived>::operator*(const MatrixBase<OtherDerived> &other) const
|
||||||
{
|
{
|
||||||
// A note regarding the function declaration: In MSVC, this function will sometimes
|
// 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
|
// 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.
|
// matrices and product types are holding a member to store the result.
|
||||||
// Thus it does not help tagging this function with EIGEN_STRONG_INLINE.
|
// Thus it does not help tagging this function with EIGEN_STRONG_INLINE.
|
||||||
enum {
|
enum {
|
||||||
ProductIsValid = Derived::ColsAtCompileTime==Dynamic
|
ProductIsValid = Derived::ColsAtCompileTime==Dynamic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user