[petsc-users] Outer Product of two vectors

Jed Brown jed at 59A2.org
Wed Oct 6 14:44:20 CDT 2010


On Wed, Oct 6, 2010 at 21:38, Harsh Sharma <hsharma.tgjobs at gmail.com> wrote:

> Specifically, I want to compute the outer product for two
> Vec objects that are large enough to require storage on
> multiple processors.
>

Don't do this, create a MatShell and apply it's action with VecDot followed
by VecAXPY.  Storing the dense outer product is insane.

Jed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101006/c4367b1c/attachment.htm>


More information about the petsc-users mailing list