Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::internal::reduce_sum_impl< ReduceFunction, require_var_t< ReturnType >, ReturnType, Vec, Args... > Struct Template Reference

Detailed Description

template<typename ReduceFunction, typename ReturnType, typename Vec, typename... Args>
struct stan::math::internal::reduce_sum_impl< ReduceFunction, require_var_t< ReturnType >, ReturnType, Vec, Args... >

Var specialization of reduce_sum_impl.

Template Parameters
ReduceFunctionType of reducer function
ReturnTypeMust be var
VecType of sliced argument
ArgsTypes of shared arguments

Definition at line 31 of file reduce_sum.hpp.

#include <reduce_sum.hpp>

Classes

struct  recursive_reducer
 This struct is used by the TBB to accumulate partial sums over consecutive ranges of the input. More...
 
struct  scoped_args_tuple
 

Public Member Functions

var operator() (Vec &&vmapped, bool auto_partitioning, int grainsize, std::ostream *msgs, Args &&... args) const
 Call an instance of the function ReduceFunction on every element of an input sequence and sum these terms.
 

The documentation for this struct was generated from the following file: