<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div> </div>

<div>Ok I see, it is not so important I was just wondering. Presently I only need it for dense matrices, fow now I am just using <a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatDenseGetArray.html">MatDenseGetArray</a> on both matrices and multiply both arrays pointwise, which is ok I guess. For non-dense matrices it may be more complicated.</div>

<div> </div>

<div>Best,</div>

<div>Marius</div>

<div> 
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><br/>
<b>Von:</b> "Zhang, Hong" <hzhang@mcs.anl.gov><br/>
<b>An:</b> "Marius Buerkle" <mbuerkle@web.de>, "PETSc users list" <petsc-users@mcs.anl.gov><br/>
<b>Betreff:</b> Re: [petsc-users] componentwise matrix multiplication</div>

<div name="quoted-content"><!--P {
        margin-top: 0;
        margin-bottom: 0;
}
-->
<div>
<div style="font-family: Calibri , Arial , Helvetica , sans-serif;font-size: 12.0pt;color: rgb(0,0,0);"><span style="color: rgb(50,49,48);font-family: Verdana;font-size: 12.0px;">Marius,</span></div>

<div style="font-family: Calibri , Arial , Helvetica , sans-serif;font-size: 12.0pt;color: rgb(0,0,0);"><span style="color: rgb(50,49,48);font-family: Verdana;font-size: 12.0px;background-color: rgb(255,255,255);display: inline;">No. You may write one yourself. Let us know what matrix format do you have. We'll make suggestion to you.</span></div>

<div style="font-family: Calibri , Arial , Helvetica , sans-serif;font-size: 12.0pt;color: rgb(0,0,0);"><span style="color: rgb(50,49,48);font-family: Verdana;font-size: 12.0px;background-color: rgb(255,255,255);display: inline;">Hong</span></div>

<hr style="display: inline-block;width: 98.0%;"/>
<div id="divRplyFwdMsg"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11.0pt;"><b>From:</b> petsc-users <petsc-users-bounces@mcs.anl.gov> on behalf of Marius Buerkle <mbuerkle@web.de><br/>
<b>Sent:</b> Monday, August 10, 2020 7:50 PM<br/>
<b>To:</b> PETSc users list <petsc-users@mcs.anl.gov><br/>
<b>Subject:</b> [petsc-users] componentwise matrix multiplication</font>

<div> </div>
</div>

<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>

<div> </div>

<div>Is there a componentwise matrix multiplication, similar to VecPointwiseMult ?</div>

<div> </div>

<div>Best,</div>

<div>Marius</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>