1 #ifndef STAN_MATH_PRIM_MAT_FUN_TAIL_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_TAIL_HPP 27 Eigen::Matrix<T, Eigen::Dynamic, 1>
28 tail(
const Eigen::Matrix<T, Eigen::Dynamic, 1>& v,
47 Eigen::Matrix<T, 1, Eigen::Dynamic>
48 tail(
const Eigen::Matrix<T, 1, Eigen::Dynamic>& rv,
66 std::vector<T>
tail(
const std::vector<T>& sv,
72 for (idx_t i = sv.size() - n; i < sv.size(); ++i)
Eigen::Matrix< T, Eigen::Dynamic, 1 > tail(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &v, size_t n)
Return the specified number of elements as a vector from the back of the specified vector...
Primary template class for the metaprogram to compute the index type of a container.
void check_column_index(const char *function, const char *name, const Eigen::Matrix< T_y, R, C > &y, size_t i)
Check if the specified index is a valid column of the matrix.
void check_std_vector_index(const char *function, const char *name, const std::vector< T > &y, int i)
Check if the specified index is valid in std vector.
void check_row_index(const char *function, const char *name, const Eigen::Matrix< T_y, R, C > &y, size_t i)
Check if the specified index is a valid row of the matrix.