<div class="gmail_quote">On Thu, Jul 14, 2011 at 13:18, Xuefei (Rebecca) Yuan <span dir="ltr">&lt;<a href="mailto:xyuan@lbl.gov">xyuan@lbl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":171">I would like to store this sparse MXN matrix A in the following form:<br>
....................................................<br>
<br>
line1:  M       N       numberofnonzeros<br>
line2:  i       j       value<br>
line3:  i       j       value</div></blockquote></div><br><div>This &quot;COO&quot; format is not an efficient representation. Why do you want to store it this way?</div><div><br></div><div>(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.</div>