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

◆ rep_row_vector() [1/4]

template<typename T , require_any_t< is_matrix_cl< T >, math::conjunction< is_var< T >, is_matrix_cl< value_type_t< T > > > > * = nullptr>
auto stan::math::rep_row_vector ( const scalar_type_t< T > &  x,
int  n 
)

Creates a matrix_cl representing a row vector by replicating the input value.

Template Parameters
Ttype of the input
Parameters
xthe input value
nnumber of cols in the results row_vector
Returns
matrix_cl with replicated value from the input matrix
Exceptions
<code>domain_error</code>if the requested dimensions are negative

Definition at line 31 of file rep_row_vector.hpp.