1#ifndef STAN_MATH_REV_CORE_BUILD_VARI_ARRAY_HPP
2#define STAN_MATH_REV_CORE_BUILD_VARI_ARRAY_HPP
20template <
int R,
int C>
24 for (
int i = 0; i < x.size(); ++i) {
T * alloc_array(size_t n)
Allocate an array on the arena of the specified size to hold values of the specified template paramet...
vari ** build_vari_array(const Eigen::Matrix< var, R, C > &x)
Allocates and populates a flat array of vari pointers in the autodiff arena with the varis pointed to...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
static thread_local AutodiffStackStorage * instance_