/************************************************************ File: common.h Description: A program that inputs a matrix from a file and computes the Cholesky decomposition using several processes. This file contains communication functions. Author: Dana Vrajitoru Organization: IUSB Date: August 16, 2002 **************************************************************/ #ifndef COMMON_H #define COMMON_H const int MASTER_ID=0; // Receives an array of floats of the given size from the proc_id // process. void Receive_float_array(int proc_id, float *array, int size); // Sends an array of floats of the given size to the proc_id process. void Send_float_array(int proc_id, float *array, int size); // Receives an array of integers of the given size from the proc_id // process. void Receive_int_array(int proc_id, int *array, int size); // Sends an array of integers of the given size to the proc_id // process. void Send_int_array(int proc_id, int *array, int size); // The source process broadcasts an array of integers of the given // size. void Cast_int_array(int source, int *array, int size); // Computes the minimum of two integers int min(int arg1, int arg2); #endif