[petsc-users] get matlab representation si,sj,sa from MATSEQAIJ

Dominik Szczerba dominik at itis.ethz.ch
Wed Nov 23 08:06:36 CST 2011


I have converted my MATMPIAIJ to MATSEQAIJ using MatGetSubMatrices.
I need to dump it to a hdf5 file in form of three vectors: si, sj
(int) and sa (double), with their sizes equal to the number of
nonzeros.
I looked through the help index page for AIJ, matlab and similar
keywords, but can not find a suitable function.

How can I get the 3 needed arrays out or my (sequential) matrix?

Many thanks for any hints,
Dominik


More information about the petsc-users mailing list