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

◆ col() [1/2]

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

Return the specified column of the specified kernel generator expression using start-at-1 indexing.

Template Parameters
T_xtype of input kernel generator expression a
Parameters
xinput kernel generator expression.
jColumn index (count from 1).
Returns
Specified column of the matrix.
Exceptions
std::invalid_argumentif j is out of range.

Definition at line 23 of file col.hpp.