TR-mbed 1.0
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
benchBlasGemm.cpp File Reference
#include <iostream>
#include <Eigen/Core>
#include "BenchTimer.h"
#include <cblas.h>
#include <string>

Macros

#define _FLOAT
 
#define CBLAS_GEMM   cblas_sgemm
 
#define MYVERIFY(A, M)
 

Typedefs

typedef float Scalar
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::DynamicMyMatrix
 

Functions

void bench_eigengemm (MyMatrix &mc, const MyMatrix &ma, const MyMatrix &mb, int nbloops)
 
void check_product (int M, int N, int K)
 
void check_product (void)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ _FLOAT

#define _FLOAT

◆ CBLAS_GEMM

#define CBLAS_GEMM   cblas_sgemm

◆ MYVERIFY

#define MYVERIFY (   A,
  M 
)
Value:
if (!(A)) { \
std::cout << "FAIL: " << M << "\n"; \
}
The matrix class, also used for vectors and row-vectors.
Definition Matrix.h:180

Typedef Documentation

◆ MyMatrix

◆ Scalar

typedef float Scalar

Function Documentation

◆ bench_eigengemm()

void bench_eigengemm ( MyMatrix mc,
const MyMatrix ma,
const MyMatrix mb,
int  nbloops 
)

◆ check_product() [1/2]

void check_product ( int  M,
int  N,
int  K 
)

◆ check_product() [2/2]

void check_product ( void  )

◆ main()

int main ( int  argc,
char *  argv[] 
)