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

◆ col() [2/2]

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

Return the specified column of the specified matrix using start-at-1 indexing.

This is equivalent to calling m.col(i - 1) and assigning the resulting template expression to a column vector.

Template Parameters
Ttype of the matrix
Parameters
mMatrix.
jColumn index (count from 1).
Returns
Specified column of the matrix.
Exceptions
std::out_of_rangeif j is out of range.

Definition at line 24 of file col.hpp.