Question: How to export huge matrix using MatrixMarket format in order?

Hello,

       I have a huge sparse matrix (1.5e6 x 1.5e6) of both symbolic or non-symbolic form. When I export matrix using ExportMatrix command, it is not writing the matrix in order of rows and columns. To further explain the problem,

          Let A be that huge sparse matrix. I am using

                    ExportMatrix("matrix.mtx",A,format=MatrixMarket)

We expect the output to be,

 1 1 0.1

 1 10 0.65

.

.

.

But it is writing the output as

 

100 1 0.25

100 25 0.65

Hence it is not writing in order. What is the way we can force it to write in order? I do understand using for loop will consume more time.

Please Wait...