<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Bikash:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><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></div></div></blockquote><div><br></div><div>2 would be more efficient.</div><div><br></div><div>HongĀ </div></div></div></div>