[petsc-users] VecMTDot vs MatMult

Barry Smith bsmith at mcs.anl.gov
Wed Apr 6 13:35:14 CDT 2016


  They should be pretty similar. So use whatever makes sense for the rest of the code with respect to the "rectangular dense matrix" or collection of vectors.

   Barry

> On Apr 6, 2016, at 12:07 PM, Phanisri Pradeep Pratapa <ppratapa at gatech.edu> wrote:
> 
> Hi,
> 
> I am trying to find out the product of a rectangular dense matrix and a vector. Could you please let me know if forming the rectangular matrix as an array of Vecs and then using VecMTDot is better (or worse/similar) than doing MatMult? (In both cases the matrix and the vectors are parallely distributed)
> 
> Thank you,
> 
> Regards,
> 
> Pradeep



More information about the petsc-users mailing list