<div class="gmail_quote">On Thu, Mar 1, 2012 at 17:39, Vaclav Hapla <span dir="ltr"><<a href="mailto:vaclav.hapla@vsb.cz">vaclav.hapla@vsb.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#ffffff" text="#000000">OK, but:<br>
    1. I don't understand what's the use case for MatCopy.<br></div></blockquote><div><br></div><div>Copy to a complete matrix with same or different preallocation.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#ffffff" text="#000000">
    2. I think it's not good that I can't do the thing without
    reallocations though I have an apriori information where the new
    nonzeros will lie.<br>
    3. Documentation of MatAssemblyBegin/End should definitely contain
    the information about the zero filter.<br></div></blockquote><div><br></div><div>There is no "zero filter". If you preallocate and set columns (inserting explicit zeros or whatever), they will not get filtered out.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#ffffff" text="#000000">
    <br>
    But OK, 2. is not a problem in my case :-)<br>
    Thank you,</div></blockquote></div><br>