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

◆ sub_col() [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_col ( const T &  m,
size_t  i,
size_t  j,
size_t  nrows 
)
inline

Return a nrows x 1 subcolumn starting at (i-1, j-1).

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

Definition at line 23 of file sub_col.hpp.