We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38bcb2b + a69f1d9 commit 46fa82dCopy full SHA for 46fa82d
stan/math/prim/fun/scalar_seq_view.hpp
@@ -29,7 +29,7 @@ class scalar_seq_view<C, require_eigen_vector_t<C>> {
29
* @param i index
30
* @return the element at the specified position in the container
31
*/
32
- inline auto operator[](size_t i) const { return c_.coeffRef(i); }
+ inline auto operator[](size_t i) const { return c_.coeff(i); }
33
34
inline auto size() const noexcept { return c_.size(); }
35
0 commit comments