From 4d3e50036fc566fac3f857a508774e1d005ec866 Mon Sep 17 00:00:00 2001 From: Rohit Santhanam Date: Tue, 30 Nov 2021 14:00:59 +0000 Subject: [PATCH] Fix for HIP compilation breakage in selfAdjoint and triangular view classes. --- Eigen/src/Core/SelfAdjointView.h | 2 +- Eigen/src/Core/TriangularMatrix.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/SelfAdjointView.h b/Eigen/src/Core/SelfAdjointView.h index 9e6026304..6b1124718 100644 --- a/Eigen/src/Core/SelfAdjointView.h +++ b/Eigen/src/Core/SelfAdjointView.h @@ -218,8 +218,8 @@ template class SelfAdjointView typedef SelfAdjointView TransposeReturnType; /** \sa MatrixBase::transpose() */ - EIGEN_DEVICE_FUNC template + EIGEN_DEVICE_FUNC inline TransposeReturnType transpose(typename internal::enable_if::value, Dummy*>::type = nullptr) { typename MatrixType::TransposeReturnType tmp(m_matrix); diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 34c072f32..9376a79a1 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -264,8 +264,8 @@ template class TriangularView typedef TriangularView TransposeReturnType; /** \sa MatrixBase::transpose() */ - EIGEN_DEVICE_FUNC template + EIGEN_DEVICE_FUNC inline TransposeReturnType transpose(typename internal::enable_if::value, Dummy*>::type = nullptr) { typename MatrixType::TransposeReturnType tmp(m_matrix);