1#ifndef STAN_MATH_PRIM_FUN_AS_VALUE_ARRAY_OR_SCALAR_HPP
2#define STAN_MATH_PRIM_FUN_AS_VALUE_ARRAY_OR_SCALAR_HPP
T as_array_or_scalar(T &&v)
Returns specified input value.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
auto as_value_array_or_scalar(T &&v)
Extract the value from an object.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...