[petsc-users] To store the matrix.

Jed Brown jedbrown at mcs.anl.gov
Thu Jul 14 13:36:09 CDT 2011


On Thu, Jul 14, 2011 at 13:30, Xuefei (Rebecca) Yuan <xyuan at lbl.gov> wrote:

> I need to have this form for the simple input for PDSLin.
>
> What do you mean by "COO"?
>

http://en.wikipedia.org/wiki/Sparse_matrix#Coordinate_list_.28COO.29


> Any examples to show how to pull that new array for reading from the AIJ
> structure?
>

Get the indices using MatGetRowIJ() and the values using MatGetArray().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110714/1dd1fcda/attachment.htm>


More information about the petsc-users mailing list