1 #ifndef STAN__MATH__MATRIX__SEGMENT_HPP
2 #define STAN__MATH__MATRIX__SEGMENT_HPP
19 Eigen::Matrix<T,Eigen::Dynamic,1>
20 segment(
const Eigen::Matrix<T,Eigen::Dynamic,1>& v,
28 return v.segment(i-1,n);
33 Eigen::Matrix<T,1,Eigen::Dynamic>
34 segment(
const Eigen::Matrix<T,1,Eigen::Dynamic>& v,
43 return v.segment(i-1,n);
59 for (
size_t j = 0; j < n; ++j)
60 s.push_back(sv[i + j - 1]);
bool check_greater(const char *function, const T_y &y, const T_low &low, const char *name, T_result *result)
bool check_less_or_equal(const char *function, const T_y &y, const T_high &high, const char *name, T_result *result)
Eigen::Matrix< T, Eigen::Dynamic, 1 > segment(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &v, size_t i, size_t n)
Return the specified number of elements as a vector starting from the specified element - 1 of the sp...