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

◆ aggregate_tangent() [1/2]

template<typename FuncTangent , typename InputArg , require_not_st_fvar< InputArg > * = nullptr>
constexpr double stan::math::internal::aggregate_tangent ( const FuncTangent &  tangent,
const InputArg &  arg 
)
inlineconstexpr

Helper function for aggregating tangents if the respective input argument was an fvar<T> type.

Overload for when the input is not an fvar<T> and no tangents are needed.

Template Parameters
FuncTangentType of tangent calculated by finite-differences
InputArgType of the function input argument
Parameters
tangentCalculated tangent
argInput argument

Definition at line 27 of file finite_diff.hpp.