[petsc-users] MatSetValues vs. MatSetValue

Qin Lu lu_qin_2000 at yahoo.com
Mon Nov 4 09:01:42 CST 2013


Hello,
 
I need to set values of a sparse matrix. Is setting coefficients row by row using MatSetValues more efficient than setting setting coefficient one by one using MatSetValue? Is MatSetValues implemented by looping over each entry of the input array calling MatSetValue?
 
Thanks a lot for your help,
Qin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131104/0d4643a4/attachment.html>


More information about the petsc-users mailing list