From 95463b59bcde8650433f2637416f8b8ac3696b2b Mon Sep 17 00:00:00 2001 From: Binhao Qin Date: Tue, 7 Jun 2022 20:10:47 +0000 Subject: [PATCH] Mark `index_remap` as `EIGEN_DEVICE_FUNC` in `src/Core/Reshaped.h` (Fixes #2493) --- Eigen/src/Core/Reshaped.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Reshaped.h b/Eigen/src/Core/Reshaped.h index 53889fe91..c90e61f2c 100644 --- a/Eigen/src/Core/Reshaped.h +++ b/Eigen/src/Core/Reshaped.h @@ -325,7 +325,7 @@ struct reshaped_evaluator RowCol; - inline RowCol index_remap(Index rowId, Index colId) const + EIGEN_DEVICE_FUNC inline RowCol index_remap(Index rowId, Index colId) const { if(Order==ColMajor) {