![]()  | 
  
    Stan Math Library
    5.1.0
    
   Automatic Differentiation 
   | 
   
      
  | 
  inline | 
Returns a matrix representation of a vector or matrix in column-major order with the specified number of rows and columns.
| T_x | type of the matrix | 
| x | matrix | 
| m | rows | 
| n | columns | 
| <code>std::invalid_argument</code> | if the sizes do not match | 
Definition at line 40 of file to_matrix.hpp.