<p>:). thanks, Barry<br></p><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 1:37 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
If PETSc had a function that does a direct sum as you requested I would have told you.<br>
Just do a copy, a scale and then an MatAXPY()<br><font color="#888888">
<br>
Barry</font><div><div class="Wj3C7c"><br>
<br>
On Dec 17, 2008, at 3:33 PM, Yujie wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Barry<br>
<br>
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.<br>
<br>
Regards,<br>
<br>
Yujie<br>
<br>
<br>
On Wed, Dec 17, 2008 at 1:17 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>> wrote:<br>
<br>
MatAXPY()<br>
<br>
<br>
On Dec 17, 2008, at 3:02 PM, Yujie wrote:<br>
<br>
Hi,<br>
<br>
I have matrices A1 and A2. It is distributed in the cluster. Their distribution is same<br>
<br>
I want to do A=a1A1+a2A2. How to do it? I can't find the suitble function. thanks a lot.<br>
<br>
Regards,<br>
<br>
Yujie<br>
<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>