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

◆ to_matrix() [9/13]

template<typename EigMat , require_eigen_t< EigMat > * = nullptr>
Eigen::Matrix< value_type_t< EigMat >, Eigen::Dynamic, Eigen::Dynamic > stan::math::to_matrix ( EigMat &&  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.

Template Parameters
EigMattype of the matrix
Parameters
xmatrix
mrows
ncolumns
Returns
Reshaped inputted matrix
Exceptions
<code>std::invalid_argument</code>if the sizes do not match

Definition at line 108 of file to_matrix.hpp.