<div dir="ltr"><div dir="ltr">On Mon, Dec 2, 2024 at 5:14 PM Eric Chamberland via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>Hello,</p>
<p>We were exploring the use of the <code>MatCreateComposite</code>
function with <code>petsc4py</code>, but we noticed that it
doesn't seem to be available in the Python interface
(<a href="https://urldefense.us/v3/__https://petsc.org/release/petsc4py/reference/petsc4py.PETSc.Mat.html__;!!G_uCfscf7eWS!fphemsDPNmxHUr-ybYLt_xWUrP575eKuI4xixwypEzd2g7uc6qMilt8etg13o24gU0vloOVrsHDXwqlgoY1T7jrcQUiv83PrXvNSYlNU$" target="_blank">https://petsc.org/release/petsc4py/reference/petsc4py.PETSc.Mat.html</a>).</p>
<p>We were wondering if this is due to a technical limitation or if
there is a better alternative to achieve the same result.</p></div></blockquote><div>No, we just forgot to put in this interface. It should be done. It does not look hard, cutting and pasting from other functions.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<p>Our goal is to create a matrix representing <span><span><u></u><u></u><u></u><u></u><u></u>P<u></u><u></u>T<u></u><u></u><u></u>A<u></u><u></u>P<u></u><u></u><u></u><u></u></span>
</span>without explicitly computing the product.</p>
<p>We also considered using <code>MatShell</code>, but it seems
that this approach is not supported in <code>petsc4py</code>
either.</p>
<p>On the other hand, we noticed that <code>MatCreateTranspose</code>
is implemented, and it aligns somewhat with the kind of operation
we're aiming for.</p>
<p>Any insights or advice you could provide would be greatly
appreciated!</p>
<p>Thank you,</p>
<p>Eric</p>
<pre cols="72">--
Eric Chamberland, ing., M. Ing
Professionnel de recherche
GIREF/Université Laval
(418) 656-2131 poste 41 22 42</pre>
</div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!aHjys_axrlOjrR_fWK2NdV-rCkGLXuEuWPoyrHbLp_01Vvr48evkik5dT077BtK20PuTlFz8mMpKHsRQGEhB$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>