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

◆ as_column_vector_or_scalar() [1/6]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
auto stan::math::as_column_vector_or_scalar ( T &&  a)
inline

as_column_vector_or_scalar of a kernel generator expression.

Converts input argument to a var_value<> with column vector or a scalar.

Converts std::vector to a column vector.

Template Parameters
Ttype of argument
Parameters
ainput argument (must be a row or a column vector)
Returns
as_column_vector_or_scalar of given expression
Template Parameters
Tstd::vector type.
Parameters
aSpecified vector.
Returns
input converted to a column vector.

For column vector inputs this is an identity function.

Template Parameters
TType of var_value.
Parameters
aSpecified vector.
Returns
Same vector.

Definition at line 325 of file as_column_vector_or_scalar.hpp.