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

◆ rep_matrix() [5/8]

template<typename Ret , typename T , require_eigen_matrix_dynamic_vt< is_stan_scalar, Ret > * = nullptr, require_stan_scalar_t< T > * = nullptr>
auto stan::math::rep_matrix ( const T &  x,
int  m,
int  n 
)
inline

Implementation of rep_matrix returning an Eigen matrix with scalar type equal to the input scalar type.

Impl of rep_matrix returning an var_value<Eigen::Matrix> with a var scalar type.

Template Parameters
RetAn Eigen type.
TA Scalar type.
Parameters
xA Scalar whose values are propogated to all values in the return matrix.
mNumber or rows.
nNumber of columns.
Template Parameters
RetA var_value with inner Eigen type.
TA Scalar type.
Parameters
xA Scalar whose values are propogated to all values in the return matrix.
mNumber or rows.
nNumber of columns.

Definition at line 24 of file rep_matrix.hpp.