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

◆ rep_matrix() [2/8]

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