#include <iostream>
#include <functional>
#include <algorithm>
#include <vector>
#include <sstream>
#include <sys/time.h>
#include <tr1/tuple>
#include "promote.h"
#include "Semirings.h"
#include "Deleter.h"
#include <ext/numeric>
Go to the source code of this file.
|
| template<typename _InputIterator , typename _Tp , typename _BinaryOperation > |
| _Tp | fpaccumulate (_InputIterator __first, _InputIterator __last, _Tp __init, _BinaryOperation __binary_op) |
| |
| template<typename SR , typename _InputIterator , typename _Tp > |
| _Tp | sraccumulate (_InputIterator __first, _InputIterator __last, _Tp __init) |
| |
| ostream & | operator<< (ostream &os, AClass const &obj) |
| |
| template<typename T > |
| T | add_func (const T &a, const T &b) |
| |
| int | main () |
| |
◆ TESTSIZE
| #define TESTSIZE 100000000 |
◆ add_func()
template<typename T >
| T add_func |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
◆ fpaccumulate()
template<typename _InputIterator , typename _Tp , typename _BinaryOperation >
| _Tp fpaccumulate |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last, |
|
|
_Tp |
__init, |
|
|
_BinaryOperation |
__binary_op |
|
) |
| |
◆ main()
◆ operator<<()
| ostream & operator<< |
( |
ostream & |
os, |
|
|
AClass const & |
obj |
|
) |
| |
◆ sraccumulate()
template<typename
SR , typename _InputIterator , typename _Tp >
| _Tp sraccumulate |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last, |
|
|
_Tp |
__init |
|
) |
| |