<div class="gmail_quote">On Sun, Apr 24, 2011 at 18:22, Xiangdong Liang <span dir="ltr">&lt;<a href="mailto:xdliang@gmail.com">xdliang@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am wondering what function in petsc computes
the pointwise product of two vectors. For example, vin1=[1,2],
vin2=[3,4]; I need a function to output vout= vin1.*vin2 = [3,8].</blockquote></div><div><br></div><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Vec/VecPointwiseMult.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Vec/VecPointwiseMult.html</a>