00001 #pragma once
00002 #ifndef LIBJACOBI_H_
00003 #define LIBJACOBI_H_
00004
00005 #include <mpi.h>
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00027 double* jacobi_compute(double* a, double* b, double* x, int D, int d, int offset, double* diff);
00028
00037 double* jacobi_redistribute(MPI_Comm comm, double* a, int D, int* old_d, int* new_d);
00038
00050 int jacobi_fill_matrix(double** a, double** b, double** x, int D, int d, int offset, int seed, int rank);
00051
00062 void jacobi_final_test(MPI_Comm comm, double* a, double* b, double* x, int D, int* d, int* offset);
00063
00067 void jacobi_set_D(long long int D);
00068
00072 double jacobi_complexity(long long int d);
00073
00074 #endif