Go to the source code of this file.
Defines | |
#define | BENCH_PERF(NRM) |
Functions | |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | bl2passNorm (T &v) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | blueNorm (const T &v) |
void | check_accuracy (double basef, double based, int s) |
void | check_accuracy_var (int ef0, int ef1, int ed0, int ed1, int s) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | divacNorm (T &v) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | hypotNorm (const T &v) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | lapackNorm (T &v) |
int | main (int argc, char **argv) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | pblueNorm (const T &v) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | sqsumNorm (const T &v) |
template<typename T > | |
EIGEN_DONT_INLINE T::Scalar | twopassNorm (T &v) |
#define BENCH_PERF | ( | NRM | ) |
{ \ Eigen::BenchTimer tf, td, tcf; tf.reset(); td.reset(); tcf.reset();\ for (int k=0; k<tries; ++k) { \ tf.start(); \ for (int i=0; i<iters; ++i) NRM(vf); \ tf.stop(); \ } \ for (int k=0; k<tries; ++k) { \ td.start(); \ for (int i=0; i<iters; ++i) NRM(vd); \ td.stop(); \ } \ for (int k=0; k<std::max(1,tries/3); ++k) { \ tcf.start(); \ for (int i=0; i<iters; ++i) NRM(vcf); \ tcf.stop(); \ } \ std::cout << #NRM << "\t" << tf.value() << " " << td.value() << " " << tcf.value() << "\n"; \ }
Definition at line 215 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar bl2passNorm | ( | T & | v | ) |
Definition at line 58 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar blueNorm | ( | const T & | v | ) |
Definition at line 21 of file bench_norm.cpp.
void check_accuracy | ( | double | basef, |
double | based, | ||
int | s | ||
) |
Definition at line 235 of file bench_norm.cpp.
void check_accuracy_var | ( | int | ef0, |
int | ef1, | ||
int | ed0, | ||
int | ed1, | ||
int | s | ||
) |
Definition at line 252 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar divacNorm | ( | T & | v | ) |
Definition at line 64 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar hypotNorm | ( | const T & | v | ) |
Definition at line 15 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar lapackNorm | ( | T & | v | ) |
Definition at line 27 of file bench_norm.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 272 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar pblueNorm | ( | const T & | v | ) |
Definition at line 88 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar sqsumNorm | ( | const T & | v | ) |
Definition at line 9 of file bench_norm.cpp.
EIGEN_DONT_INLINE T::Scalar twopassNorm | ( | T & | v | ) |
Definition at line 50 of file bench_norm.cpp.