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

◆ to_matrix() [10/13]

template<typename T >
auto stan::math::to_matrix ( const std::vector< T > &  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
Ttype of elements in the vector
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 130 of file to_matrix.hpp.