Automatic Differentiation
 
Loading...
Searching...
No Matches
finite_diff.hpp File Reference

Go to the source code of this file.

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.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

template<typename FuncTangent , typename InputArg , require_not_st_fvar< InputArg > * = nullptr>
constexpr double stan::math::internal::aggregate_tangent (const FuncTangent &tangent, const InputArg &arg)
 Helper function for aggregating tangents if the respective input argument was an fvar<T> type.
 
template<typename FuncTangent , typename InputArg , require_st_fvar< InputArg > * = nullptr>
auto stan::math::internal::aggregate_tangent (const FuncTangent &tangent, const InputArg &arg)
 Helper function for aggregating tangents if the respective input argument was an fvar<T> type.
 
template<typename F , typename... TArgs, require_any_st_fvar< TArgs... > * = nullptr>
auto stan::math::finite_diff (const F &func, const TArgs &... args)
 Construct an fvar<T> where the tangent is calculated by finite-differencing.