1#ifndef STAN_MATH_REV_CORE_STORED_GRADIENT_VARI_HPP
2#define STAN_MATH_REV_CORE_STORED_GRADIENT_VARI_HPP
42 for (
size_t i = 0; i <
size_; ++i) {
void chain()
Propagate derivatives through this vari with partial derivatives given for the daughter vari by the s...
stored_gradient_vari(double value, size_t size, vari **dtrs, double *partials)
Construct a stored gradient vari with the specified value, size, daughter varis, and partial derivati...
A var implementation that stores the daughter variable implementation pointers and the partial deriva...
int64_t size(const T &m)
Returns the size (number of the elements) of a matrix_cl or var_value<matrix_cl<T>>.
constexpr auto & partials(internal::partials_propagator< Types... > &x) noexcept
Access the partials for an edge of an partials_propagator
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...