<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">Marius,</span></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><br>
</div>
<div>
<div style="font-family:Verdana; font-size:12.0px">
<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><br>
</div>
</div>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div>
<div style="font-family:Verdana; font-size:12.0px">
<div>This is a good approach for sequential and parallel MatDense matrices.</div>
</div>
</div>
</blockquote>
<div>
<div style="font-family:Verdana; font-size:12.0px">
<div>Hong</div>
<div><br>
</div>
<div>
<div>
<div name="x_quote" style="margin:10px 5px 5px 10px; padding:10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap:break-word">
<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="x_quoted-content">
<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="x_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>
</div>
</body>
</html>