how to sum two matrices?

Barry Smith bsmith at mcs.anl.gov
Wed Dec 17 15:17:24 CST 2008


   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
>




More information about the petsc-users mailing list