Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ sub_row() [2/2]

template<typename T , require_matrix_t< T > * = nullptr, require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T > * = nullptr>
auto stan::math::sub_row ( const T &  m,
size_t  i,
size_t  j,
size_t  ncols 
)
inline

Return a 1 x ncols subrow starting at (i-1, j-1).

Template Parameters
Ttype of the matrix
Parameters
mMatrix Input matrix.
iStarting row + 1.
jStarting column + 1.
ncolsNumber of columns in block.
Exceptions
std::out_of_rangeif either index is out of range.

Definition at line 23 of file sub_row.hpp.