Lines Matching refs:first
80 The first example uses ``oneapi::tbb::parallel_reduce`` to do a + reduction
82 interval [first,last).
88 T AssociativeReduce( const T* first, const T* last, T identity ) {
91 oneapi::tbb::blocked_range<const T*>(first,last),
121 T CombineReduce( const T* first, const T* last, T identity ) {
124 oneapi::tbb::blocked_range<const T*>(first,last),
154 T RepeatableReduce( const T* first, const T* last, T identity ) {
155 if( last-first<=1000 ) {
157 return std::accumulate( first, last, identity );
160 const T* mid = first+(last-first)/2;
163 [&]{left=RepeatableReduce(first,mid,identity);},
190 T RepeatableReduce( const T* first, const T* last, T identity ) {
193 oneapi::tbb::blocked_range<const T*>(first,last,1000),
233 this with ``tbb:parallel_reduce``, first define a "body" type, as