Go to the documentation of this file.
5 #include "eigen_src/Eigen/Core"
6 #include "../BenchTimer.h"
10 #error SCALAR must be defined
17 template<
typename Func>
19 double bench(
long m,
long n,
long k,
const Func&
f)
30 double up = 1e8*4/
sizeof(
Scalar);
31 double tm0 = 4, tm1 = 10;
39 double flops = 2. *
m *
n * k;
45 return 1
e-9 * rep * flops /
t.best();
48 template<
typename Func>
53 std::string
filename = std::string(
"gemm_settings.txt");
58 while(settings >>
m >>
n >> k)
Namespace containing all symbols from the Eigen library.
int main_gemm(int argc, char **argv, const Func &f)
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
#define BENCH(TIMER, TRIES, REP, CODE)
Matrix< Scalar, Dynamic, Dynamic > Mat
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
EIGEN_DONT_INLINE double bench(long m, long n, long k, const Func &f)
Matrix< Scalar, Dynamic, Dynamic > C
std::map< std::string, Array< float, 1, 8, DontAlign|RowMajor > > results
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
#define EIGEN_DONT_INLINE
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:19