vector component product

Dave May dave.mayhem23 at gmail.com
Mon Jan 7 04:37:04 CST 2008


PetscErrorCode  VecPointwiseMult(Vec w, Vec x,Vec y)



On Jan 7, 2008 9:21 PM, li pan <li76pan at yahoo.com> wrote:

> Dear all,
> I want to calculate component product of two vectors.
> If I have two vectors u and v, I want to have result
> as w(i) = u(i)*v(i). Is there a function in petsc to
> finish this job?
>
> thanx
>
> pan
>
>
>
>  ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20080107/04445d19/attachment.htm>


More information about the petsc-users mailing list