Automatic Differentiation
 
Loading...
Searching...
No Matches
as_value_column_vector_or_scalar.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_AS_VALUE_COLUMN_VECTOR_OR_SCALAR
2#define STAN_MATH_PRIM_FUN_AS_VALUE_COLUMN_VECTOR_OR_SCALAR
3
8#include <vector>
9
10namespace stan {
11namespace math {
12
22template <typename T>
24 return value_of(as_column_vector_or_scalar(std::forward<T>(a)));
25}
26
27} // namespace math
28} // namespace stan
29
30#endif
auto as_column_vector_or_scalar(T &&a)
as_column_vector_or_scalar of a kernel generator expression.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition value_of.hpp:18
auto as_value_column_vector_or_scalar(T &&a)
Extract values from input argument and transform to a column vector.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9