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
-
ContainerOps | tuple of any container operands (var_value containing Eigen types) |
ContainerGrads | tupleof any container gradients (Eigen types) |
- Parameters
-
[in] | val | The value of the variable. |
[in] | size | Size of operands and gradients |
[in] | varis | Operand implementations. |
[in] | gradients | Gradients with respect to operands. |
| container_operands | any container operands |
| container_gradients | any container gradients |
Definition at line 75 of file precomputed_gradients.hpp.