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

◆ to_vector() [5/5]

template<typename EigMat , require_eigen_t< EigMat > * = nullptr>
auto stan::math::to_vector ( const var_value< EigMat > &  x)
inline

Reshape a var_value<Matrix> to a var_value<ColumnVector>.

Template Parameters
EigMatInner type of the var_value that must inherit from Eigen::EigenBase.
Parameters
xA var whose inner matrix type is to be reshaped to an Column matrix.
Returns
A view of the original x with inner value and adjoint matrices mapped to a column vector.

Definition at line 20 of file to_vector.hpp.