[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vector component product



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


On Jan 7, 2008 9:21 PM, li pan <li76pan@xxxxxxxxx> 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