Skip to content

Commit 46fa82d

Browse files
authored
Merge pull request #2632 from hsbadr/fix/scalar_seq_view
Fix no instance of overloaded function `stan::math::Holder::coeffRef`
2 parents 38bcb2b + a69f1d9 commit 46fa82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stan/math/prim/fun/scalar_seq_view.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class scalar_seq_view<C, require_eigen_vector_t<C>> {
2929
* @param i index
3030
* @return the element at the specified position in the container
3131
*/
32-
inline auto operator[](size_t i) const { return c_.coeffRef(i); }
32+
inline auto operator[](size_t i) const { return c_.coeff(i); }
3333

3434
inline auto size() const noexcept { return c_.size(); }
3535

0 commit comments

Comments
 (0)