#include #include //Write the prototypes of the functions vecread,matread,matprintt,vecprintt,vecprintf,matvecm here int main() { int m,n,p,k,flag; double **A,*X,*B; /*Call "matread" here. After call to matread, elements of matrix are stored * in a 2-D array like variable A and m,n contain the row,column dim. of matrix */ //Call "matprintt" here that prints the matrix row-wise in the terminal /*Call "vecread" here. After call to vecread, elements of vector are stored * in a 1-D array like variable X and p contain the column dim. of vector */ //Call "vecprintt" here that prints the vector as a column in the terminal /*Call "matvecm" here. After call to matvecm, flag=0 if matrix-vector * multiplication is not possible. Otherwise, flag=1 and elements of vector * AX are stored in a 1-D array like variable B and k contain the column dim. of AX */ if(flag==0) { printf("Matrix A and vector X are incompatiable for multiplication\n"); } else { //Call "vecprintt" here that prints the vector as a column in the terminal //Call "vecprintf" here that prints the vector as a column in "vecB.dat" } return 0; } // Write details of the function vecread here // Write details of the function matread here // Write details of the function vecprintt here // Write details of the function matprintt here // Write details of the function vecprintf here // Write details of the function matvecm here