fix transposed matrix product bug

This commit is contained in:
Charles Schlosser
2024-04-23 03:25:57 +00:00
committed by Rasmus Munk Larsen
parent 112ad8b846
commit 574bc8820d
4 changed files with 47 additions and 3 deletions

View File

@@ -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
***************************************************************************/