source/test/mat_performance_test.cc File Reference

Performs some matrix-matrix multiplication operations and outputs timings. More...

#include <stdio.h>
#include <unistd.h>
#include <memory>
#include <limits>
#include "matrix_typedefs.h"
#include "matrix_utilities.h"
#include "utilities.h"
#include "config.h"

Functions

static void get_random_matrix_full (int n, std::vector< ergo_real > &fullMat)
static void get_matrix_from_full (normalMatrix &result, mat::SizesAndBlocks sizeBlockInfo, const std::vector< ergo_real > &fullMat)
static void verify_mmul_result (int n, const std::vector< ergo_real > &fullMat_A, const std::vector< ergo_real > &fullMat_B, const normalMatrix &C)
int main (int argc, char *argv[])

Detailed Description

Performs some matrix-matrix multiplication operations and outputs timings.

The point is to show how different block sizes affects the performance of matrix-matrix multiplication using the hierarchic matrix library.


Function Documentation

static void get_matrix_from_full ( normalMatrix result,
mat::SizesAndBlocks  sizeBlockInfo,
const std::vector< ergo_real > &  fullMat 
) [static]
static void get_random_matrix_full ( int  n,
std::vector< ergo_real > &  fullMat 
) [static]

Referenced by main().

int main ( int  argc,
char *  argv[] 
)
static void verify_mmul_result ( int  n,
const std::vector< ergo_real > &  fullMat_A,
const std::vector< ergo_real > &  fullMat_B,
const normalMatrix C 
) [static]

References template_blas_fabs().

Referenced by main().


Generated on 10 Jul 2018 for ergo by  doxygen 1.6.1