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

◆ as_array_or_scalar() [4/4]

template<typename T , require_var_matrix_t< T > * = nullptr>
auto stan::math::as_array_or_scalar ( T &&  v)
inline

Converts a var_value<T> with inner Eigen matrix type to an var_value<T> with an inner array.

Template Parameters
TType of var_value<T> with inner Eigen::Matrix or expression
Parameters
vSpecified var_value<T> with inner Eigen::Matrix or expression.
Returns
var_value<> with Matrix converted to an array.

Definition at line 20 of file as_array_or_scalar.hpp.