<div class="gmail_quote">On Thu, Apr 5, 2012 at 04:43, Gao Bin <span dir="ltr">&lt;<a href="mailto:bin.gao@uit.no">bin.gao@uit.no</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">I would like to use PETSc perform matrix-matrix multiplication C=A*B^T. I notice that MatMatMultTranspose could calculate C=A^T*B, but which is not I want.<br>
<br>
Does anyone know how to perform C=A*B^T using PETSc (I know I could first calculate B^T and call MatMatMult with A and B^T, but it might not be efficient, is it?)? Thank you in advance.</div></blockquote></div><br><div>Use petsc-dev. That routine is renamed (<a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatTransposeMatMult.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatTransposeMatMult.html</a>) and the one you want is</div>
<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatMatTransposeMult.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatMatTransposeMult.html</a></div>