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

◆ rep_matrix() [8/8]

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

Impl of rep_matrix returning a var_value<Eigen::Matrix> from a var_value with an inner Eigen vector type.

Template Parameters
RetA var_value with inner Eigen dynamic matrix type.
VecA var_value with an inner Eigen vector type.
Parameters
xA var_value with inner Eigen vector type. 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 45 of file rep_matrix.hpp.