How to load CSR matrix directly into boost compressed_matrix?

242 views Asked by At

I want to transfer a matrix from application A (using matrix in LDU format) to application B (using the boost ublas compressed_matrix, CSR format).

I have a function converting the LDU format to CSR format. The ldu2csr function provides me with the three arrays required to store the sparse matrix in CSR format (CSR format details can be found here: space allocated by compressed_matrix in boost): ... values[idx] = matrix.upper()[i]; cols[idx] = column; rows[row]++;

How can I load these arrays directly into the corresponding ones of a boost ublas compressed_matrix?

0

There are 0 answers