Agora  1.2.0
Agora project
bench.cc File Reference
#include <gflags/gflags.h>
#include <mkl.h>
#include <iostream>
#include "armadillo"
#include "timer.h"
Include dependency graph for bench.cc:

Macros

#define ARMA_DONT_PRINT_ERRORS
 

Enumerations

enum  PinvMode { PinvMode::kFormula, PinvMode::kSVD, PinvMode::kFormula, PinvMode::kSVD }
 

Functions

 DEFINE_uint64 (n_ants, 64, "Number of matrix rows")
 
 DEFINE_uint64 (n_users, 32, "Number of matrix columns")
 
 DEFINE_double (condition, 10, "Condition number of input matrix")
 
static void rt_assert (bool condition, const char *throw_str)
 
arma::cx_fmat gen_matrix_with_condition (double cond_num)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ ARMA_DONT_PRINT_ERRORS

#define ARMA_DONT_PRINT_ERRORS

Enumeration Type Documentation

◆ PinvMode

enum PinvMode
strong
Enumerator
kFormula 
kSVD 
kFormula 
kSVD 

Function Documentation

◆ DEFINE_double()

DEFINE_double ( condition  ,
10  ,
"Condition number of input matrix"   
)

◆ DEFINE_uint64() [1/2]

DEFINE_uint64 ( n_ants  ,
64  ,
"Number of matrix rows"   
)

◆ DEFINE_uint64() [2/2]

DEFINE_uint64 ( n_users  ,
32  ,
"Number of matrix columns"   
)

◆ gen_matrix_with_condition()

arma::cx_fmat gen_matrix_with_condition ( double  cond_num)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)
Here is the call graph for this function:

◆ rt_assert()

static void rt_assert ( bool  condition,
const char *  throw_str 
)
inlinestatic

Check a condition at runtime. If the condition is false, throw exception. This is faster than rt_assert(cond, std::string) as it avoids string construction.

Here is the caller graph for this function: