initial values of matrix and vector

Matthew Knepley knepley at gmail.com
Tue Feb 24 16:27:54 CST 2009


On Tue, Feb 24, 2009 at 4:24 PM, Yixun Liu <enjoywm at cs.wm.edu> wrote:

> How about Mat or Vec Duplicate?
>
>  VecDuplicate(v1, &v2);
>
> v2  will be set to be zero automatically?
>

Yes.

  Matt


-- 
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/ed81a1e8/attachment.htm>


More information about the petsc-users mailing list