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

◆ to_matrix() [11/13]

Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > stan::math::to_matrix ( const std::vector< int > &  x,
int  m,
int  n 
)
inline

Returns a matrix representation of the vector in column-major order with the specified number of rows and columns.

Parameters
xvector of values
mrows
ncolumns
Returns
the matrix representation of the input
Exceptions
<code>std::invalid_argument</code>if the sizes do not match

Definition at line 148 of file to_matrix.hpp.