![]() |
Stan Math Library
5.2.0
Automatic Differentiation
|
Specialization of reduce_sum_impl for arithmetic types.
| ReduceFunction | Type of reducer function |
| ReturnType | An arithmetic type |
| Vec | Type of sliced argument |
| Args | Types of shared arguments |
Definition at line 35 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... | |
Public Member Functions | |
| ReturnType | 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. | |