On Mon, Feb 23, 2009 at 8:26 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> > 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). We do not automatically zero the entires upon allocation. You have to call VecZeroEntries() or VecSet() to initialize the vector. Matt > > Barry > > > On Feb 23, 2009, at 8:24 PM, Yixun Liu wrote: > > Hi, >> What's the initial value when I create a matrix or vector? >> >> Thanks. >> > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090224/eb27ff37/attachment.htm>
