|
4 | 4 | #include "../vendor/LAGraph/include/LAGraph.h" |
5 | 5 | #include "../vendor/LAGraph/include/LAGraphX.h" |
6 | 6 |
|
7 | | -#define TRY(method) \ |
8 | | - { \ |
9 | | - GrB_Info _info = (method); \ |
10 | | - if (_info != GrB_SUCCESS) \ |
11 | | - { \ |
12 | | - fprintf(stderr, \ |
13 | | - #method " : GraphBLAS error %d \n", \ |
14 | | - _info); \ |
15 | | - return _info; \ |
16 | | - } \ |
| 7 | +#define TRY(method) \ |
| 8 | + { \ |
| 9 | + GrB_Info _info = (method); \ |
| 10 | + if (_info != GrB_SUCCESS) \ |
| 11 | + { \ |
| 12 | + fprintf(stderr, \ |
| 13 | + #method " : GraphBLAS error %d in file %s at line %d\n", \ |
| 14 | + _info,__FILE__, __LINE__); \ |
| 15 | + return _info; \ |
| 16 | + } \ |
17 | 17 | } |
18 | 18 |
|
19 | 19 | #define VERTICES_NUMBER 12 |
@@ -83,7 +83,7 @@ void owns_bool_add(bool *z, const bool *x, const bool *y) |
83 | 83 |
|
84 | 84 | void tx_bool_mult(EdgeTX *z, const bool *x, const EdgeTX *y) |
85 | 85 | { |
86 | | - if (*x) |
| 86 | + if (*x) // вот этот иф не нужен в идеале, потому что мы проходимся только по значащим значениям |
87 | 87 | *z = *y; |
88 | 88 | else |
89 | 89 | z->sum = 0, z->count = 0; |
@@ -303,7 +303,7 @@ int main() |
303 | 303 | // ------------------------------------------------------------------------ |
304 | 304 | // build filter for tx matrix |
305 | 305 | // ------------------------------------------------------------------------ |
306 | | - |
| 306 | + |
307 | 307 | // get cards with MIR payment system only |
308 | 308 | TRY(GrB_Matrix_free(&ID)); |
309 | 309 | TRY(GrB_Vector_free(&v)); |
|
0 commit comments