![]() |
Stan Math Library
5.3.0
Automatic Differentiation
|
Var specialization of reduce_sum_impl.
| ReduceFunction | Type of reducer function |
| ReturnType | Must be var |
| Vec | Type of sliced argument |
| Args | Types 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. | |