On Mon, Feb 23, 2009 at 8:26 PM, Barry Smith <span dir="ltr">&lt;<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
   Vectors have all entries equal to zero. Dense matrices have all entries equal to zero. Sparse matrices have no entries (logically this is the same as entries equal to zero).<font color="#888888"></font></blockquote><div>
<br>We do not automatically zero the entires upon allocation. You have to call VecZeroEntries() or VecSet()<br>to initialize the vector.<br><br>  Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
   Barry</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Feb 23, 2009, at 8:24 PM, Yixun Liu wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
What&#39;s the initial value when I create a matrix or vector?<br>
<br>
Thanks.<br>
</blockquote>

</div></div></blockquote></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>