PETSc does not do this. You would have to be very sparse to beat BLAS, and<div>then the algorithms change drastically.</div><div><br></div><div> Matt<br><br><div class="gmail_quote">On Mon, Feb 22, 2010 at 1:00 AM, Zhifeng Sheng - EWI <span dir="ltr"><<a href="mailto:Z.Sheng@tudelft.nl">Z.Sheng@tudelft.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<p><font size="2">Dear all<br>
<br>
I would like to multiply a matrix with a vector that has only a few zeros, and I wonder if petsc would take this into account and skip all the unnecessary computation with zeros?<br>
<br>
Thanks and best regards<br><font color="#888888">
Zhifeng</font></font>
</p>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>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<br>
</div>