[petsc-users] multiplication of two vetors

Matthew Knepley knepley at gmail.com
Wed Feb 10 08:33:12 CST 2016


On Wed, Feb 10, 2016 at 8:06 AM, wen zhao <wen.zhao at outlook.fr> wrote:

> Hello
>
> I have another question about the multiplication of two vector with the
> form
>
> (x) * (x^T), which x is of length n,
>
> That means, the result is a matrix. Is there some functions in Petsc.
>

You do not want to form this matrix since it is dense but very low rank. We
do not have
a separate abstraction for outer product matrices, but it would not be hard
to write. However,
its not clear it would save people much programming, and it increases the
interface size.

  Thanks,

     Matt


> 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/20160210/14a6f315/attachment-0001.html>


More information about the petsc-users mailing list