Automatic Differentiation
 
Loading...
Searching...
No Matches
precomputed_gradients.hpp File Reference
#include <stan/math/prim/err/check_matching_dims.hpp>
#include <stan/math/rev/core/vari.hpp>
#include <stan/math/rev/core/var.hpp>
#include <stan/math/rev/fun/dims.hpp>
#include <stan/math/rev/fun/to_arena.hpp>
#include <algorithm>
#include <vector>
#include <tuple>

Go to the source code of this file.

Classes

class  stan::math::precomputed_gradients_vari_template< ContainerOperands, ContainerGradients >
 A variable implementation taking a sequence of operands and partial derivatives with respect to the operands. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Typedefs

using stan::math::precomputed_gradients_vari = precomputed_gradients_vari_template< std::tuple<>, std::tuple<> >
 

Functions

template<typename Arith , typename VecVar , typename VecArith , typename... ContainerOperands, typename... ContainerGradients>
var stan::math::precomputed_gradients (Arith value, const VecVar &operands, const VecArith &gradients, const std::tuple< ContainerOperands... > &container_operands=std::tuple<>(), const std::tuple< ContainerGradients... > &container_gradients=std::tuple<>())
 This function returns a var for an expression that has the specified value, vector of operands, and vector of partial derivatives of value with respect to the operands.