[petsc-users] MatMatMult vs series of MatMult

Bikash Kanungo bikash at umich.edu
Wed Sep 16 15:32:16 CDT 2015


Thanks a lot, Hong.

On Wed, Sep 16, 2015 at 4:05 PM, Hong <hzhang at mcs.anl.gov> wrote:

> Bikash:
>>
>>
>> I have sparse matrix of MATMPIAIJ format that needs to be multiplied with
>> a series of vectors and the resultant set of vectors are to be stored into
>> a matrix. I can do that in two ways:
>>
>> 1. Perform series of MatMult operations and store the resultant vectors
>> in a MATMPIDENSE matrix; or
>> 2. Store the vectors in a MATMPIDENSE matrix and perform a MatMatMult
>> operation.
>>
>
> 2 would be more efficient.
>
> Hong
>



-- 
Bikash S. Kanungo
PhD Student
Computational Materials Physics Group
Mechanical Engineering
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150916/3226e085/attachment.html>


More information about the petsc-users mailing list