<div class="gmail_quote">On Tue, Nov 29, 2011 at 06:12, Nisoli Isaia <span dir="ltr"><<a href="mailto:isaia.nisoli@gmail.com">isaia.nisoli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":2a9">Sorry, I mixed up things.<br>It is probably simply<br><br>rowindices[size]=rowindices[size-1];<br></div></blockquote><div><br></div><div>That gives you an empty row.</div><div><br></div><div><br></div><div>
Some algorithms require diagonal entries, so it's sometimes better to preallocate them and put an explicit zero there than to skip them.</div></div>