00001 #include <stdlib.h>
00002
00003 #define CYCLIC
00004 #undef SIMPLE_MATRIX
00005
00006
00007 void matrices_initialisation(double ** p_a, double ** p_b, double ** p_c,
00008 size_t m, size_t k_a, size_t k_b, size_t n,
00009 size_t row, size_t col);
00010 void matrices_allocation(double ** p_a, double ** p_b, double ** p_c,
00011 size_t m, size_t k_a, size_t k_b, size_t n);
00012 void blocks_initialisation(double ** p_a_local, double ** p_b_local,
00013 size_t m, size_t B_k, size_t n);
00014
00015
00016 void check_reception_a(double *a_local,
00017 size_t m, size_t B_k,
00018 size_t row, size_t col);
00019
00020 void check_reception_b(double *b_local,
00021 size_t B_k, size_t n,
00022 size_t row, size_t col);
00023 void check_result(double *c, double *a, double *b,
00024 size_t m, size_t n, size_t k_a, size_t k_b,
00025 size_t row, size_t col,
00026 size_t size_row, size_t size_col);