1 #ifndef STAN_MATH_PRIM_MAT_FUN_SUB_ROW_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_SUB_ROW_HPP
22 Eigen::Matrix<T, 1, Eigen::Dynamic>
23 sub_row(
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& m,
24 size_t i,
size_t j,
size_t ncols) {
29 return m.block(i - 1, j - 1, 1, ncols);
Eigen::Matrix< T, 1, Eigen::Dynamic > sub_row(const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &m, size_t i, size_t j, size_t ncols)
Return a 1 x nrows subrow starting at (i-1, j-1).
bool check_row_index(const char *function, const char *name, const Eigen::Matrix< T_y, R, C > &y, size_t i)
Return true if the specified index is a valid row of the matrix.
bool check_column_index(const char *function, const char *name, const Eigen::Matrix< T_y, R, C > &y, const size_t i)
Return true if the specified index is a valid column of the matrix.