1 #ifndef STAN_MATH_REV_CORE_BUILD_VARI_ARRAY_HPP 2 #define STAN_MATH_REV_CORE_BUILD_VARI_ARRAY_HPP 20 template <
int R,
int C>
24 for (
int i = 0; i < x.size(); ++i) {
The variable implementation base class.
static STAN_THREADS_DEF AutodiffStackStorage * instance_
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...