Skip to content

Commit

Permalink
fix template error
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Jan 8, 2024
1 parent cb7d951 commit 0218f2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/stan/model/indexing/rvalue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<EigMat>* = nullptr,
require_all_same_t<RowMultiIndex, ColMultiIndex, index_multi>* = nullptr>
inline auto rvalue(EigMat&& x, const char* name, RowMultiMulti&& row_idx,
require_same_t<RowMultiIndex, index_multi>* = nullptr,
require_same_t<ColMultiIndex, index_multi>* = 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();
Expand Down

0 comments on commit 0218f2e

Please sign in to comment.