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

◆ sub_col() [1/2]

template<typename T_x , typename = require_nonscalar_prim_or_rev_kernel_expression_t<T_x>>
auto stan::math::sub_col ( T_x &&  x,
size_t  i,
size_t  j,
size_t  nrows 
)
inline

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

Template Parameters
T_xtype of input kernel generator expression x
Parameters
xinput kernel generator expression.
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.