[petsc-users] Question on Matrix Product with DMDA Matrix
Matthew Knepley
knepley at gmail.com
Wed Jan 14 11:49:44 CST 2026
On Wed, Jan 14, 2026 at 12:13 PM Micol Bassanini via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Dear User Support Team,
> I have a question regarding my project.
> I would like to compute a matrix product between a DMDA matrix that is
> distributed across multiple ranks and a dense matrix that is available on
> only a single processor. What is the recommended or standard approach for
> implementing this kind of operation?
>
It sounds like you should distribute your dense matrix. You might do it
using MatSetValues(), or MatCreateSubmatrix().
Thanks,
Matt
> Thank you in advance for your help.
> Best regards,
> Micol
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!d6GQrZ5VUzxJEZ4hXZgXG8TrQNNtN-ZE3lm4bZVNzzLNU388FLqczz7lHcXEKa2F8LI0nctKw_i09TOCXD86$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!d6GQrZ5VUzxJEZ4hXZgXG8TrQNNtN-ZE3lm4bZVNzzLNU388FLqczz7lHcXEKa2F8LI0nctKw_i09T6PUbnU$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260114/31bc7be7/attachment-0001.html>
More information about the petsc-users
mailing list