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

◆ rep_matrix() [1/8]

template<typename T , require_matrix_cl_t< T > * = nullptr>
auto stan::math::rep_matrix ( const value_type_t< T > &  x,
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
xthe 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 28 of file rep_matrix.hpp.