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

◆ aggregate_tangent() [2/2]

template<typename FuncTangent , typename InputArg , require_st_fvar< InputArg > * = nullptr>
auto stan::math::internal::aggregate_tangent ( const FuncTangent &  tangent,
const InputArg &  arg 
)
inline

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

Overload for when the input is an fvar<T> and its tangent needs to be aggregated.

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

Definition at line 46 of file finite_diff.hpp.