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

◆ rep_matrix() [7/8]

template<typename Vec , require_eigen_vector_t< Vec > * = nullptr>
auto stan::math::rep_matrix ( const Vec &  x,
int  n 
)
inline

Implementation of rep_matrix returning an Eigen matrix from an Eigen vector.

Template Parameters
VecAn Eigen vector.
Parameters
xAn Eigen vector. For Row vectors the values are replacated rowwise. and for column vectors the values are repliacated colwise.
nNumber of rows or columns.

Definition at line 54 of file rep_matrix.hpp.