<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I have sparse matrix of MATMPIAIJ format that needs to be multiplied with a series of vectors and the resultant set of vectors are to be stored into a matrix. I can do that in two ways:<br><br></div>1. Perform series of MatMult operations and store the resultant vectors in a MATMPIDENSE matrix; or<br></div>2. Store the vectors in a MATMPIDENSE matrix and perform a MatMatMult operation.<br><br></div>I want to know which of these two approaches will be more efficient and if there is a crossover in terms of the number of vectors for which one approach starts performing better than the other.<br><div><br></div><div>Thanks,<br></div><div>Bikash<br clear="all"></div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div><div><font color="#666666">Bikash S. Kanungo<br></font></div><font color="#666666">PhD Student<br></font></div><font color="#666666">Computational Materials Physics Group<br></font></div><font color="#666666">Mechanical Engineering <br></font></div><font color="#666666">University of Michigan<br><br></font></div></div>
</div></div></div></div></div></div>