<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">James:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I'm multiplying two dense matrices. I compared the results against MATLAB and I am getting different results. Attached you will see a zip that contains a .mat file that has the A, B, and C. C_MATLAB is the multiplication of A*B in MATLAB and C is the PETSc 3.4.3 result. I also attached the .m files A, B, and C that were saved from PETSc. Is there something I'm doing wrong or </blockquote><div><br></div><div> What is the file type of matmatmult_comparison.mat?</div><div>How to read it?</div><div>I need to see how it defers from C.m.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">any reason due to the shape of the matrices that this would fail? If it gives any more information we convert the previous matrix that A is formed of A2 (A = A1*A2) to dense prior to the multiplication using MatConvert.<br></blockquote><div><br></div><div>It seems both A and B are dense, complex square matrices. </div><div>Did you call MatMatMult() in sequential or parallel? What matrix format did you use? </div><div><br></div><div>Hong</div></div><br></div></div>