Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Functions | Variables
26.accumulate.cpp File Reference
#include <numeric>
#include <cstddef>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
Include dependency graph for 26.accumulate.cpp:

Go to the source code of this file.

Data Structures

struct  plus_asgn< T >
 
struct  Y
 
struct  Y::OpPlusAssign
 
struct  conv_to_T< T >
 
struct  Accumulator
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class T , class InputIterator , class BinaryOp >
void test_accumulate (const std::size_t N, const InputIterator &it, const T *, const BinaryOp *op)
 
template<class T , class BinaryOp >
void test_accumulate (const std::size_t N, const T *, const BinaryOp *op)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_nloops = 256
 
int rw_opt_no_binary_op
 
int rw_opt_no_input_iter
 
int rw_opt_no_fwd_iter
 
int rw_opt_no_bidir_iter
 
int rw_opt_no_rnd_iter
 

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

Definition at line 51 of file 26.accumulate.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 322 of file 26.accumulate.cpp.

◆ test_accumulate() [1/2]

template<class T , class InputIterator , class BinaryOp >
void test_accumulate ( const std::size_t  N,
const InputIterator &  it,
const T *  ,
const BinaryOp *  op 
)

Definition at line 197 of file 26.accumulate.cpp.

◆ test_accumulate() [2/2]

template<class T , class BinaryOp >
void test_accumulate ( const std::size_t  N,
const T *  ,
const BinaryOp *  op 
)

Definition at line 258 of file 26.accumulate.cpp.

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = 256

Definition at line 248 of file 26.accumulate.cpp.

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 252 of file 26.accumulate.cpp.

◆ rw_opt_no_binary_op

int rw_opt_no_binary_op

Definition at line 249 of file 26.accumulate.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 251 of file 26.accumulate.cpp.

◆ rw_opt_no_input_iter

int rw_opt_no_input_iter

Definition at line 250 of file 26.accumulate.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 253 of file 26.accumulate.cpp.