How to load a ublas compressed_matrix with data in CSR matrix format?

Hello,

I want to transfer a sparse matrix from application A to application B.

I wrote a function to convert the original matrix (LDU format) to CSR format and at the end of the process I have the 3 arrays for values[], row_indexes[] and column_indexes[] that represent the matrix in CSR format.

The ublas compressed_matrix stores data in CSR format and application B uses a ublas compressed_matrix.

How can I load the data stored in the 3 arrays into an ublas compressed_matrix?

T.
Topic archived. No new replies allowed.