Fix for HIP compilation breakage in selfAdjoint and triangular view classes.

This commit is contained in:
Rohit Santhanam 2021-11-30 14:00:59 +00:00 committed by Antonio Sánchez
parent 63abb35dfd
commit 4d3e50036f
2 changed files with 2 additions and 2 deletions

View File

@ -218,8 +218,8 @@ template<typename MatrixType_, unsigned int UpLo> class SelfAdjointView
typedef SelfAdjointView<typename MatrixType::TransposeReturnType,TransposeMode> TransposeReturnType;
/** \sa MatrixBase::transpose() */
EIGEN_DEVICE_FUNC
template<class Dummy=int>
EIGEN_DEVICE_FUNC
inline TransposeReturnType transpose(typename internal::enable_if<Eigen::internal::is_lvalue<MatrixType>::value, Dummy*>::type = nullptr)
{
typename MatrixType::TransposeReturnType tmp(m_matrix);

View File

@ -264,8 +264,8 @@ template<typename MatrixType_, unsigned int Mode_> class TriangularView
typedef TriangularView<typename MatrixType::TransposeReturnType,TransposeMode> TransposeReturnType;
/** \sa MatrixBase::transpose() */
EIGEN_DEVICE_FUNC
template<class Dummy=int>
EIGEN_DEVICE_FUNC
inline TransposeReturnType transpose(typename internal::enable_if<Eigen::internal::is_lvalue<MatrixType>::value, Dummy*>::type = nullptr)
{
typename MatrixType::TransposeReturnType tmp(m_matrix);