<div class="gmail_quote">On Tue, Aug 31, 2010 at 12:18 PM, Benoist Laurent <span dir="ltr">&lt;<a href="mailto:benoist@ibpc.fr">benoist@ibpc.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div>Several assumptions:</div><div>    - the initial value 0 of your table is not stored.</div><div>    - the rows are given in inverse order of entry</div><div><br></div><div>The first column is therefore the column index of your matrix.</div>
<div>It results in </div><div><br></div><div><br></div><div><font face="Courier">20  30  40        </font></div><div><font face="Courier">10  20  30</font></div><div><font face="Courier">    10  20</font></div><div><font face="Courier">--------------------</font></div>
<div><font face="Courier">0   1   2    column index</font></div><div><br></div><div><br></div><div><br></div><div>So the pair is (column_index, value).</div><div>And the row index is given by the number of time you&#39;ve ever seen the column index before (except for the 0 that increases the difficulty!).</div>
<div><br></div><div>Am I wrong ? Am I clear ? Does it answer your question ?</div><div><br></div><div>Benoist</div><div><br></div></div></blockquote><div class="gmail_quote"><br></div>Ah, I see it now, thank you. </div><div class="gmail_quote">
<br></div><div class="gmail_quote"><div>David </div></div>