Stan Math Library
5.0.0
Automatic Differentiation
|
reduce_sum_impl implementation for any autodiff type.
ReduceFunction | Type of reducer function |
ReturnType | An arithmetic type |
Vec | Type of sliced argument |
Args | Types of shared arguments |
Definition at line 29 of file reduce_sum.hpp.
#include <reduce_sum.hpp>
Public Member Functions | |
return_type_t< Vec, Args... > | 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. | |