From 7b80609d496ae50741d1866f2a9ef9149c4edc04 Mon Sep 17 00:00:00 2001 From: acxz <5379597-acxz@users.noreply.gitlab.com> Date: Tue, 1 Dec 2020 03:08:47 +0000 Subject: add EIGEN_DEVICE_FUNC to methods --- Eigen/src/Cholesky/LDLT.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Cholesky') diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index 67e97ffb8..492cd5a95 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -53,7 +53,7 @@ namespace internal { * decomposition to determine whether a system of equations has a solution. * * This class supports the \link InplaceDecomposition inplace decomposition \endlink mechanism. - * + * * \sa MatrixBase::ldlt(), SelfAdjointView::ldlt(), class LLT */ template class LDLT @@ -246,8 +246,8 @@ template class LDLT */ const LDLT& adjoint() const { return *this; }; - inline Index rows() const { return m_matrix.rows(); } - inline Index cols() const { return m_matrix.cols(); } + EIGEN_DEVICE_FUNC inline Index rows() const { return m_matrix.rows(); } + EIGEN_DEVICE_FUNC inline Index cols() const { return m_matrix.cols(); } /** \brief Reports whether previous computation was successful. * -- cgit v1.2.3