[petsc-users] Create a matrix from a set of vectors

Matthew Knepley knepley at gmail.com
Tue Feb 15 15:12:59 CST 2011


On Tue, Feb 15, 2011 at 2:53 PM, Waad Subber <w_subber at yahoo.com> wrote:

> Hello,
> Can I create a matrix from a set of vectors without using VecGetValues and
> MatSetValues such as
>
> Vec  v1, v2
> Mat  A
>
> A=[v1 v2]
>

This is a dense matrix. You can create a MatDense and pull out arrays to
shared.

   Matt


> Thanks
> Waad
>
>


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


More information about the petsc-users mailing list