Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return a copy of the row of the specified matrix at the specified base-one row index.
If the index is out of range, throw a std::out_of_range
exception with the specified error message and index indicated.
Warning: Because a copy is involved, it is inefficient to access element of matrices by first using this method to get a row then using a second call to get the value at a specified column.
EigMat | type of the matrix |
x | Matrix from which to get a row |
m | Index into matrix plus 1. |
error_msg | Error message if the index is out of range. |
idx | Nested index level to report in error message if the index is out of range. |
i - 1
. std::out_of_range | if idx is out of range. |
Definition at line 253 of file get_base1.hpp.