<div class="gmail_quote">On Mon, Oct 10, 2011 at 08:16, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":2fc">If only read from a pointer obtained via VecGetArray, but not modify<br>
any values, is VecRestoreArray still mandatory?</div></blockquote></div><br><div>Yes. Note that you can use VecGetArrayRead() if you only want const access. (You still restore, but cached norms remain valid.)</div>