Namespaces | Macros | Functions
bench_norm.cpp File Reference
#include <typeinfo>
#include <iostream>
#include <Eigen/Core>
#include "BenchTimer.h"
Include dependency graph for bench_norm.cpp:

Go to the source code of this file.

Namespaces

 Eigen
 Namespace containing all symbols from the Eigen library.
 
 Eigen::internal
 

Macros

#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 (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 (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 (T &v)
 
template<typename T >
EIGEN_DONT_INLINE T::Scalar stableNorm (T &v)
 
template<typename T >
EIGEN_DONT_INLINE T::Scalar twopassNorm (T &v)
 

Macro Definition Documentation

#define BENCH_PERF (   NRM)
Value:
{ \
float af = 0; double ad = 0; std::complex<float> ac = 0; \
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) { af += NRM(vf); } \
tf.stop(); \
} \
for (int k=0; k<tries; ++k) { \
td.start(); \
for (int i=0; i<iters; ++i) { ad += NRM(vd); } \
td.stop(); \
} \
/*for (int k=0; k<std::max(1,tries/3); ++k) { \
tcf.start(); \
for (int i=0; i<iters; ++i) { ac += NRM(vcf); } \
tcf.stop(); \
} */\
std::cout << #NRM << "\t" << tf.value() << " " << td.value() << " " << tcf.value() << "\n"; \
}
for(size_t i=1;i< poses.size();++i)

Definition at line 225 of file bench_norm.cpp.

Function Documentation

template<typename T >
EIGEN_DONT_INLINE T::Scalar bl2passNorm ( T v)

Definition at line 64 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar blueNorm ( T v)

Definition at line 27 of file bench_norm.cpp.

void check_accuracy ( double  basef,
double  based,
int  s 
)

Definition at line 246 of file bench_norm.cpp.

void check_accuracy_var ( int  ef0,
int  ef1,
int  ed0,
int  ed1,
int  s 
)

Definition at line 263 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar divacNorm ( T v)

Definition at line 70 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar hypotNorm ( T v)

Definition at line 21 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar lapackNorm ( T v)

Definition at line 33 of file bench_norm.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 283 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar pblueNorm ( const T v)

Definition at line 98 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar sqsumNorm ( T v)

Definition at line 9 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar stableNorm ( T v)

Definition at line 15 of file bench_norm.cpp.

template<typename T >
EIGEN_DONT_INLINE T::Scalar twopassNorm ( T v)

Definition at line 56 of file bench_norm.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:27