mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix transposed matrix product bug
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
112ad8b846
commit
574bc8820d
@@ -196,6 +196,18 @@ EIGEN_DEVICE_FUNC inline const typename MatrixBase<Derived>::AdjointReturnType M
|
||||
return AdjointReturnType(this->transpose());
|
||||
}
|
||||
|
||||
template <typename Lhs_, typename Rhs_, int Option>
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Product<Lhs_, Rhs_, Option>::TransposeReturnType
|
||||
Product<Lhs_, Rhs_, Option>::transpose() const {
|
||||
return TransposeReturnType(m_rhs.transpose(), m_lhs.transpose());
|
||||
}
|
||||
|
||||
template <typename Lhs_, typename Rhs_, int Option>
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Product<Lhs_, Rhs_, Option>::AdjointReturnType
|
||||
Product<Lhs_, Rhs_, Option>::adjoint() const {
|
||||
return AdjointReturnType(m_rhs.adjoint(), m_lhs.adjoint());
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
* "in place" transpose implementation
|
||||
***************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user