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

◆ rep_matrix() [3/8]

template<typename T_ret , require_var_vt< is_matrix_cl, T_ret > * = nullptr>
var_value< matrix_cl< double > > stan::math::rep_matrix ( const var A,
int  n,
int  m 
)
inline

Creates a matrix_cl by replicating the given value of arithmetic type.

Template Parameters
Ttype of the result matrix
Parameters
Athe input value
nnumber of rows in the result matrix
mnumber of columns in the result matrix
Returns
matrix_cl with replicated value from the input
Exceptions
<code>domain_error</code>if the requested dimensions are negative

Definition at line 30 of file rep_matrix.hpp.