Question on Matrix Product with DMDA Matrix
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? Thank you in advance for your help. Best regards, Micol
On Wed, Jan 14, 2026 at 12:13 PM Micol Bassanini via petsc-users < [email protected]> 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_uCf... <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfs... >
participants (2)
-
Matthew Knepley -
Micol Bassanini