[petsc-users] To store the matrix.

Jed Brown jedbrown at mcs.anl.gov
Thu Jul 14 13:28:32 CDT 2011


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

> I would like to store this sparse MXN matrix A in the following form:
> ....................................................
>
> line1:  M       N       numberofnonzeros
> line2:  i       j       value
> line3:  i       j       value
>

This "COO" format is not an efficient representation. Why do you want to
store it this way?

(You can produce this by getting the AIJ structure, allocating a new array
for the row indices, and filling it redundantly from the AIJ structure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110714/d2446fff/attachment.htm>


More information about the petsc-users mailing list