<p>Thanks for the clarification Jed. But zeroing more entries than necessary would still trigger malloc calls. Would it not ?</p>
<p>Vijay</p>
<div class="gmail_quote">On Apr 20, 2011 5:05 AM, "Jed Brown" <<a href="mailto:jed@59a2.org">jed@59a2.org</a>> wrote:<br type="attribution">> On Wed, Apr 20, 2011 at 05:08, Vijay S. Mahadevan <<a href="mailto:vijay.m@gmail.com">vijay.m@gmail.com</a>> wrote:<br>
> <br>>> Barry, just to confirm, are you saying that MatZeroEntries would<br>>> nullify the preallocation completely if called before<br>>> AssmeblyBegin/End ?<br>>><br>> <br>> I can't think of a way that would happen. It may zero more entries than<br>
> necessary, but it shouldn't forget the preallocation. Note that the<br>> preallocation in DMGetMatrix() and many other libraries actually insert<br>> explicit zeros in the locations it has preallocated.<br>
</div>