This is a conjugate gradient solver for large sparse matrix. ie, to get x in Ax = b. Read data from "matrix", save result in "ans".
python Random_matrix.py N
g++ CPU_Conjugate.cpp -o cpu_conjugate
./cpu_conjugate N -t -d
mpic++ MPI_Conjugate.cpp -o mpi_conjugate
mpiexec -n 2 ./mpi_conjugate N -t -d
g++ Validation.cpp -o validation
./validation