¡@

Home 

c++ Programming Glossary: ncols

writing a matrix into a single txt file with mpi

http://stackoverflow.com/questions/9777828/writing-a-matrix-into-a-single-txt-file-with-mpi

MPI_Datatype localarray const int nrows 10 const int ncols 10 float data char const fmt 8.3f char const endfmt 8.3f n int.. startrow 1 allocate local data data alloc2d locnrows ncols fill local data for int i 0 i locnrows i for int j 0 j ncols.. fill local data for int i 0 i locnrows i for int j 0 j ncols j data i j rank each number is represented by charspernum chars..