<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 10, 2017 at 5:51 PM, David Gross <span dir="ltr"><<a href="mailto:davegwebb10@gmail.com" target="_blank">davegwebb10@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello,<br></div>I was wondering if there was a matrix equivalent to the vecDot function (Frobenius inner product)? As far as I can tell the closest thing is MatNorm with NORM_FROBENIUS, but obviously this is acting on only one matrix.<br><br></div>If there is not a built in function, what is the best way to compute this? I am working fortran90.<br></div></div></div></blockquote><div><br></div><div>We do not have this. However, it would be trivial to add since we have</div><div><br></div><div>  <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatAXPY.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatAXPY.html</a></div><div><br></div><div>since you just replace + with * in our code. You could argue that we should have written for</div><div>a general ring, but C makes this cumbersome. Do you think you could make the change?</div><div><br></div><div>What are you using this for?</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div>Regards,<br></div>Dave<br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">http://www.caam.rice.edu/~mk51/</a><br></div></div></div>
</div></div>