Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Construct a precomputed vari with the specified value, operands, gradients and optionally container operands and containers of gradients.
Arith | An arithmetic type |
VecVar | A vector of vars |
VecArith | A vector of arithmetic types |
ContainerOps | tuple of any container operands (var_value containing Eigen types) |
ContainerGrads | tupleof any container gradients (Eigen types) |
[in] | val | The value of the variable. |
[in] | vars | Vector of operands. |
[in] | gradients | Vector of partial derivatives of value with respect to operands. |
container_operands | any container operands | |
container_gradients | any container gradients |
std::invalid_argument | if the sizes of the vectors don't match. |
Definition at line 116 of file precomputed_gradients.hpp.