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

◆ as_column_vector_or_scalar() [6/6]

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

Converts a row vector to an eigen column vector.

Converts var_value with row vector inner type to a var_value<> with inner column vector type.

For row vectors this returns a Transpose<Eigen::Matrix<T, 1, -1>>.

Template Parameters
TType inheriting from EigenBase with dynamic compile time columns and fixed row of 1.
Parameters
aSpecified vector.
Returns
Transposed vector.
Template Parameters
TA var_value<> with an inner row vector type.
Parameters
aSpecified vector.
Returns
Transposed vector.

Definition at line 59 of file as_column_vector_or_scalar.hpp.