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

◆ as_value_array_or_scalar()

template<typename T >
auto stan::math::as_value_array_or_scalar ( T &&  v)
inline

Extract the value from an object.

For eigen types and std::vectors convert to an eigen array and for scalars return a scalar.

Template Parameters
TA stan scalar, eigen vector, or std::vector.
Parameters
vSpecified value.
Returns
Same value.

Definition at line 21 of file as_value_array_or_scalar.hpp.