<div class="gmail_quote">On Fri, Feb 18, 2011 at 19:48, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":5ty">Can some of the VecAXPY() calls in loops in TS be replaced with single VecMAXPY() calls? For example<br>
<br>
 for (j=0; j<r; j++) {<br>
          ierr = VecAXPY(gl->Z,-shift*u[i*r+j],X[j]);CHKERRQ(ierr);<br>
        }<br></div></blockquote><div><br></div><div>They can, but we would have to create a temporary array to hold the coefficients and run the loop to fill the coefficients into that array. I recall intending to do that when I first wrote this, but clearly it never happened.</div>
</div>