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

◆ cumulative_sum() [2/5]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
var_value< matrix_cl< double > > stan::math::cumulative_sum ( const var_value< T > &  A)
inline

Return the cumulative sum of the specified vector.

The cumulative sum of a vector of values

is the
\code x[0], x[1] + x[2], ..., x[1] + , ..., + x[x.size()-1]
Template Parameters
Tscalar type of the vector
Parameters
AVector of values
Returns
Cumulative sum of values

Definition at line 26 of file cumulative_sum.hpp.