Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Functions | Variables
26.partial.sum.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.partial.sum.cpp:

Go to the source code of this file.

Data Structures

struct  plus< T >
 
struct  conv_to_T< T >
 
struct  Accumulator
 
struct  PartialSumBase
 
struct  PartialSum< InputIterator, OutputIterator >
 

Functions

template<class T >
const plus< T > & operator+ (const plus< T > &lhs, const plus< T > &rhs)
 
 _RWSTD_NAMESPACE (std)
 
UserClass operator+ (const UserClass &lhs, const UserClass &rhs)
 
void test_partial_sum (const std::size_t N, const PartialSumBase &alg, bool binop, bool same_seq)
 
template<class InputIterator , class OutputIterator >
void gen_partial_sum_test (const std::size_t N, const InputIterator &, const OutputIterator &, bool binop)
 
template<class InputIterator >
void gen_partial_sum_test (const std::size_t N, const InputIterator &it, bool binop)
 
void gen_partial_sum_test (const std::size_t N, bool binop)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_nloops = 64
 
int rw_opt_no_binary_op
 
int rw_opt_no_input_iter
 
int rw_opt_no_output_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 55 of file 26.partial.sum.cpp.

◆ gen_partial_sum_test() [1/3]

void gen_partial_sum_test ( const std::size_t  N,
bool  binop 
)

Definition at line 327 of file 26.partial.sum.cpp.

◆ gen_partial_sum_test() [2/3]

template<class InputIterator , class OutputIterator >
void gen_partial_sum_test ( const std::size_t  N,
const InputIterator &  ,
const OutputIterator &  ,
bool  binop 
)

Definition at line 291 of file 26.partial.sum.cpp.

◆ gen_partial_sum_test() [3/3]

template<class InputIterator >
void gen_partial_sum_test ( const std::size_t  N,
const InputIterator &  it,
bool  binop 
)

Definition at line 307 of file 26.partial.sum.cpp.

◆ main()

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

Definition at line 381 of file 26.partial.sum.cpp.

◆ operator+() [1/2]

template<class T >
const plus< T > & operator+ ( const plus< T > &  lhs,
const plus< T > &  rhs 
)

Definition at line 49 of file 26.partial.sum.cpp.

◆ operator+() [2/2]

UserClass operator+ ( const UserClass &  lhs,
const UserClass &  rhs 
)

Definition at line 78 of file 26.partial.sum.cpp.

◆ test_partial_sum()

void test_partial_sum ( const std::size_t  N,
const PartialSumBase &  alg,
bool  binop,
bool  same_seq 
)

Definition at line 182 of file 26.partial.sum.cpp.

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = 64

Definition at line 280 of file 26.partial.sum.cpp.

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 285 of file 26.partial.sum.cpp.

◆ rw_opt_no_binary_op

int rw_opt_no_binary_op

Definition at line 281 of file 26.partial.sum.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 284 of file 26.partial.sum.cpp.

◆ rw_opt_no_input_iter

int rw_opt_no_input_iter

Definition at line 282 of file 26.partial.sum.cpp.

◆ rw_opt_no_output_iter

int rw_opt_no_output_iter

Definition at line 283 of file 26.partial.sum.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 286 of file 26.partial.sum.cpp.