1#ifndef STAN_MATH_REV_FUN_FROM_VAR_VALUE_HPP
2#define STAN_MATH_REV_FUN_FROM_VAR_VALUE_HPP
19template <
typename T, require_var_matrix_t<T>* =
nullptr>
20Eigen::Matrix<var, T::RowsAtCompileTime, T::ColsAtCompileTime>
from_var_value(
38 std::is_same<std::decay_t<T>,
var>,
41 return std::forward<T>(a);
53 std::vector<decltype(from_var_value(std::declval<T>()))> out;
54 out.reserve(a.size());
55 for (
size_t i = 0; i < a.size(); ++i) {
Equivalent to Eigen::Matrix, except that the data is stored on AD stack.
std::integral_constant< bool, B > bool_constant
Alias for structs used for wraps a static constant of bool.
void reverse_pass_callback(F &&functor)
Puts a callback on the autodiff stack to be called in reverse pass.
Eigen::Matrix< var, T::RowsAtCompileTime, T::ColsAtCompileTime > from_var_value(const T &a)
Converts var_value into an Eigen Matrix.
std::enable_if_t< math::disjunction< Checks... >::value > require_any_t
If any condition is true, template is enabled.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Defines a static member named value which is defined to be false as the primitive scalar types cannot...