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

◆ BENCH_PERF

#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"; \
}

Definition at line 225 of file bench_norm.cpp.

Function Documentation

◆ bl2passNorm()

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

Definition at line 64 of file bench_norm.cpp.

◆ blueNorm()

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

Definition at line 27 of file bench_norm.cpp.

◆ check_accuracy()

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

Definition at line 242 of file bench_norm.cpp.

◆ check_accuracy_var()

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

Definition at line 259 of file bench_norm.cpp.

◆ divacNorm()

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

Definition at line 70 of file bench_norm.cpp.

◆ hypotNorm()

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

Definition at line 21 of file bench_norm.cpp.

◆ lapackNorm()

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

Definition at line 33 of file bench_norm.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 279 of file bench_norm.cpp.

◆ pblueNorm()

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

Definition at line 98 of file bench_norm.cpp.

◆ sqsumNorm()

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

Definition at line 9 of file bench_norm.cpp.

◆ stableNorm()

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

Definition at line 15 of file bench_norm.cpp.

◆ twopassNorm()

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

Definition at line 56 of file bench_norm.cpp.

i
int i
Definition: BiCGSTAB_step_by_step.cpp:9


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:45