Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ precomputed_gradients_vari_template() [1/2]

template<typename ContainerOperands = std::tuple<>, typename ContainerGradients = std::tuple<>>
template<typename... ContainerOps, typename... ContainerGrads>
stan::math::precomputed_gradients_vari_template< ContainerOperands, ContainerGradients >::precomputed_gradients_vari_template ( double  val,
size_t  size,
vari **  varis,
double *  gradients,
const std::tuple< ContainerOps... > &  container_operands = std::tuple<>(),
const std::tuple< ContainerGrads... > &  container_gradients = std::tuple<>() 
)
inline

Construct a precomputed vari with the specified value, operands, gradients and optionally container operands and containers of gradients.

Template Parameters
ContainerOpstuple of any container operands (var_value containing Eigen types)
ContainerGradstupleof any container gradients (Eigen types)
Parameters
[in]valThe value of the variable.
[in]sizeSize of operands and gradients
[in]varisOperand implementations.
[in]gradientsGradients with respect to operands.
container_operandsany container operands
container_gradientsany container gradients

Definition at line 75 of file precomputed_gradients.hpp.