
#include <math.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <time.h>
#include <cstdlib>
#include <mpi.h>
using namespace std;
# define N_DIM 16 // confirmed
# define MATRIX_FILE “matrix_16.txt”
# define VECTOR_FILE “vector_16.txt”
void read_mat_from_file(const char *s, int n_row, int n_col, double*in_matrix);
void RowMatrixVectorMultiply(int dim, double *mat, double *vec,double *myResult, int myRank, int multiple);
double vectors_dot_prod(const double *x, const double *y, intn);
int main( int argc, char *argv[] )
{
//Define memory locations
int n_proc;
int myRank;
int multiple;
int i, z;
double t1, t2;
//Memory locations that all have but only used by P0
double *matrix_data;
double *vector_data;
double result[N_DIM];
//Distributed matrix and vector memory locations
double *myVectorElement;
double
PayPal Gateway not configured
PayPal Gateway not configured