From 0218f2e596d858d6cf0e4ec911fe00a5bdee8d7b Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Mon, 8 Jan 2024 12:36:02 -0500 Subject: [PATCH] fix template error --- src/stan/model/indexing/rvalue.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stan/model/indexing/rvalue.hpp b/src/stan/model/indexing/rvalue.hpp index 473529d282..6767d499d3 100644 --- a/src/stan/model/indexing/rvalue.hpp +++ b/src/stan/model/indexing/rvalue.hpp @@ -503,10 +503,11 @@ inline auto rvalue(EigMat&& x, const char* name, MultiIndex&& row_idx, * @return Result of indexing matrix. */ template < - typename EigMat, typename RowIndexMulti, typename ColIndexMulti, + typename EigMat, typename RowMultiIndex, typename ColMultiIndex, require_eigen_dense_dynamic_t* = nullptr, - require_all_same_t* = nullptr> -inline auto rvalue(EigMat&& x, const char* name, RowMultiMulti&& row_idx, + require_same_t* = nullptr, + require_same_t* = nullptr> +inline auto rvalue(EigMat&& x, const char* name, RowMultiIndex&& row_idx, ColMultiIndex&& col_idx) { const Eigen::Index rows = row_idx.ns_.size(); const Eigen::Index cols = col_idx.ns_.size();