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

◆ rep_matrix() [4/8]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
var_value< matrix_cl< double > > stan::math::rep_matrix ( const var_value< T > &  A,
int  m 
)
inline

Creates a matrix_cl by replicating the input vector or row_vector.

The elements of the vector or row_vector must be of arithmetic type.

Template Parameters
Ttype of elements in the input matrix
Parameters
Athe input matrix_cl (vector or row_vector)
mnumber of rows (if x is a row_vector) or columns (if x is a vector) in the results matrix
Returns
result matrix with replicated rows or columns
Exceptions
<code>domain_error</code>if the requested dimensions are negative

Definition at line 55 of file rep_matrix.hpp.