openGPMP
Open Source Mathematics Package
|
#include <chrono>
#include <iostream>
#include <openGPMP/linalg.hpp>
#include <random>
#include <vector>
Go to the source code of this file.
Functions | |
void | run_mtx_add () |
void | run_mtx_add_flt () |
void | run_mtx_add_doub () |
void | run_mtx_add_arr () |
void | fill_matrix_random (float *matrix, std::size_t rows, std::size_t cols) |
void | print_matrix (const float *matrix, std::size_t rows, std::size_t cols) |
void | mtx_add_f90 () |
int | main () |
Variables | |
constexpr int | matrixSize = 8912 |
void fill_matrix_random | ( | float * | matrix, |
std::size_t | rows, | ||
std::size_t | cols | ||
) |
Definition at line 312 of file mtx.cpp.
References test_linalg::cols, and test_linalg::rows.
Referenced by mtx_add_f90().
int main | ( | void | ) |
Definition at line 382 of file mtx.cpp.
References mtx_add_f90(), run_mtx_add(), run_mtx_add_arr(), run_mtx_add_doub(), and run_mtx_add_flt().
void mtx_add_f90 | ( | ) |
Definition at line 333 of file mtx.cpp.
References python.linalg::A, python.linalg::B, python.linalg::C, fill_matrix_random(), matrixSize, and python.linalg::mtx.
Referenced by main().
void print_matrix | ( | const float * | matrix, |
std::size_t | rows, | ||
std::size_t | cols | ||
) |
void run_mtx_add | ( | ) |
Definition at line 8 of file mtx.cpp.
References python.linalg::A, python.linalg::B, python.linalg::C, matrixSize, and python.linalg::mtx.
Referenced by main().
void run_mtx_add_arr | ( | ) |
Definition at line 249 of file mtx.cpp.
References python.linalg::A, python.linalg::B, python.linalg::C, matrixSize, and python.linalg::mtx.
Referenced by main().
void run_mtx_add_doub | ( | ) |
Definition at line 167 of file mtx.cpp.
References python.linalg::A, python.linalg::B, python.linalg::C, matrixSize, and python.linalg::mtx.
Referenced by main().
void run_mtx_add_flt | ( | ) |
Definition at line 86 of file mtx.cpp.
References python.linalg::A, python.linalg::B, python.linalg::C, matrixSize, and python.linalg::mtx.
Referenced by main().
|
constexpr |
Definition at line 6 of file mtx.cpp.
Referenced by initialize_matrix_random(), main(), mtx_add_f90(), print_matrix(), run_mtx_add(), run_mtx_add_arr(), run_mtx_add_doub(), and run_mtx_add_flt().