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

◆ row() [2/2]

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

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

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

Template Parameters
Ttype of the matrix
Parameters
mMatrix.
iRow index (count from 1).
Returns
Specified row of the matrix.
Exceptions
std::out_of_rangeif i is out of range.

Definition at line 24 of file row.hpp.