<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote type="cite" style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "system-ui", Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255)">
<div style="margin:0px">
<div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">
<span style="margin:0px">Lucas, </span></div>
<div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">
<span style="margin:0px">Solving</span></div>
<div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">
<span style="margin:0px">A X = B^T  #MatMatTransposeSolve() </span>-- supported by petsc/mumps interface</div>
<div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">
<span style="margin:0px">or </span></div>
<div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">
A^T X = B #MatTransposeMatSolve() -- not supported</div>
<div style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;margin:0px">
which one do you want ?</div>
</div>
</blockquote>
Hong</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> petsc-users <petsc-users-bounces@mcs.anl.gov> on behalf of Junchao Zhang <junchao.zhang@gmail.com><br>
<b>Sent:</b> Thursday, August 4, 2022 5:21 PM<br>
<b>To:</b> Barry Smith <bsmith@petsc.dev><br>
<b>Cc:</b> petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject:</b> Re: [petsc-users] Question about speed of MatMatSolveTranspose with MUMPS</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
It seems yes, from mump manual</p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
<br>
</p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
ICNTL(9) computes the solution using A or A<span class="x_gmail-s1" style="font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal">T</span></p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
Phase: accessed by the host during the solve phase.</p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
Possible values :</p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
1    : AX = B is solved.</p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
!= 1 : A<span class="x_gmail-s1" style="font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal">T</span>X = B is solved.</p>
<p class="x_gmail-p1" style="margin:0px; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal; line-height:normal; font-family:Helvetica">
<br>
</p>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Thu, Aug 4, 2022 at 4:20 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div style="">
<div><br>
</div>
  Yes, it appears no MUMPS matmatsolvetranspose is wired in. Does MUMPS provide such a function? If so it can be added with a few lines of code.
<div><br>
</div>
<div>  Barry</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Aug 4, 2022, at 3:55 PM, Lucas Banting <<a href="mailto:bantingl@myumanitoba.ca" target="_blank">bantingl@myumanitoba.ca</a>> wrote:</div>
<br>
<div>
<div style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Hello,<br>
</div>
<div style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br>
I am using MUMPS to solve a system with multiple right hand sides.</div>
<div style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
I have noticed that the MatMatSolve function appears to be quite a bit faster than the MatMatSolveTranspose function.<br>
I was trying to look through the petsc source to see where the MatMatSolveTranspose_MUMPS function was but couldn't find it.<br>
<br>
Is PETSc just doing MatSolveTranspose_MUMPS for each right hand side when doing MatMatSolveTranspose with MUMPS?<br>
If an accelerated version of MatMatSolveTranspose existed, it would be very useful for my application.<br>
<br>
Regards,
<div>Lucas</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>