Skip to content

Commit

Permalink
Updated Documentation for Timer class.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroarmas committed Apr 10, 2022
1 parent 9f4550d commit 1ba14ba
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions include/matrix_benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,6 @@
namespace Matrix {


/* EXAMPLE USAGE:
using matrix_t = Matrix::Representation;
std::unique_ptr<matrix_t> ma = std::make_unique<matrix_t>(4000, 2000);
std::unique_ptr<matrix_t> mb = std::make_unique<matrix_t>(2000, 3000);
Matrix::Generation::Normal<0, 1> normal_distribution_init;
ma = normal_distribution_init(std::move(ma));
mb = normal_distribution_init(std::move(mb));
std::unique_ptr<Matrix::Operations::Multiplication::Square> mul_ptr = std::make_unique<Matrix::Operations::Multiplication::Square>();
Matrix::Benchmark mul_bm(std::move(mul_ptr));
std::unique_ptr<matrix_t> mc = mul_bm(ma, mb);
*/

class Benchmark {

Expand All @@ -42,6 +23,28 @@ namespace Matrix {

};



/*
DESCRIPTION:
Decorator for BaseOp() class Function objects, used to benchmark algorithm performance.
USAGE:
using matrix_t = Matrix::Representation;
std::unique_ptr<matrix_t> ma = std::make_unique<matrix_t>(5000, 5000);
std::unique_ptr<matrix_t> mb = std::make_unique<matrix_t>(5000, 5000);
Matrix::Generation::Normal<0, 1> normal_distribution_init;
ma = normal_distribution_init(std::move(ma));
mb = normal_distribution_init(std::move(mb));
std::unique_ptr<Matrix::Operations::Multiplication::ParallelDNC> mul_ptr_r = std::make_unique<Matrix::Operations::Multiplication::ParallelDNC>();
Matrix::Timer mul_bm_r(std::move(mul_ptr_r));
std::unique_ptr<matrix_t> mf = mul_bm_r(ma, mb);
*/
class Timer : public Benchmark {

public:
Expand Down

0 comments on commit 1ba14ba

Please sign in to comment.