:). thanks, Barry On Wed, Dec 17, 2008 at 1:37 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> > If PETSc had a function that does a direct sum as you requested I would > have told you. > Just do a copy, a scale and then an MatAXPY() > > Barry > > On Dec 17, 2008, at 3:33 PM, Yujie wrote: > > Hi, Barry >> >> I want to do A=a1A1+a2A2. MatAXPY is just for Y = a*X + Y. Though I can >> realize my application, it is not good. Do you have direct function for my >> application? thanks a lot. >> >> Regards, >> >> Yujie >> >> >> On Wed, Dec 17, 2008 at 1:17 PM, Barry Smith <bsmith at mcs.anl.gov> wrote: >> >> MatAXPY() >> >> >> On Dec 17, 2008, at 3:02 PM, Yujie wrote: >> >> Hi, >> >> I have matrices A1 and A2. It is distributed in the cluster. Their >> distribution is same >> >> I want to do A=a1A1+a2A2. How to do it? I can't find the suitble function. >> thanks a lot. >> >> Regards, >> >> Yujie >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20081217/b35c5fd7/attachment.htm>
