<div><div><div dir="auto">Hi Pierre,</div></div><div><br><div class="gmail_quote"></div></div></div><div><div dir="ltr">On Fri, 19 Oct 2018 at 21:28, Pierre Jolivet <<a href="mailto:pierre.jolivet@enseeiht.fr" target="_blank">pierre.jolivet@enseeiht.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I’m trying to call MatTransposeGetMat on a Mat created with MatCreateHermitianTranspose, but this fails.<br>
Why is there no MatHermitianTransposeGetMat?</blockquote><div dir="auto"><br></div></div><div><div dir="auto">Looks like an oversight to me.</div></div><div><div dir="auto"><br></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Is there a work around?</blockquote><div dir="auto"><br></div></div><div><div dir="auto">Doesn't seem to be a hack workaround possible as the object holding the reference to the original matrix is declared directly in the C file. See typedef struct Mat_HT</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://www.mcs.anl.gov/petsc/petsc-current/src/mat/impls/transpose/htransm.c.html" target="_blank">https://www.mcs.anl.gov/petsc/petsc-current/src/mat/impls/transpose/htransm.c.html</a></div></div><div dir="auto"><br></div><div dir="auto">Support for XXXGetMat() needs to go into master. Essentially one needs to just copy the code from </div><div dir="auto"><br></div><div dir="auto"><div><a href="https://www.mcs.anl.gov/pets/petsc-current/src/mat/impls/transpose/transm.c.html" target="_blank">https://www.mcs.anl.gov/pets/petsc-current/src/mat/impls/transpose/transm.c.html</a></div><br></div><div dir="auto">associated with MatTransposeGetMat and change the type from Mat_Transpose to Mat_HT.</div><div dir="auto"><br></div><div dir="auto">Want to make a PR?</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"> Dave</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Thanks,<br>
Pierre</blockquote>
</div>