<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 1, 2015 at 4:39 AM, Lulu Liu <span dir="ltr"><<a href="mailto:lulu.liu@kaust.edu.sa" target="_blank">lulu.liu@kaust.edu.sa</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I feel confused about  <span>MatNullSpaceSetFunction</span>(), and is there any example to show how to use this function? What should I do in the the following function<b> rem?</b><div>For example, I have a <span>vection</span> a=(a1,a2,a3) and the null space is (0,0,1).</div></div></blockquote><div><br></div><div>Your function should remove the null space. Thus, if you got that input, you would return (a1,a2,0)</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><span style="color:rgb(0,0,0)"><span>PetscErrorCode</span>  <span>MatNullSpaceSetFunction</span>(<span>MatNullSpace</span> <span>sp</span>, <span>PetscErrorCode</span> (*rem)(<span>MatNullSpace</span>,<span>Vec</span>,void*),void *<span>ctx</span>)</span><div><span style="color:rgb(0,0,0);font-family:Times;font-size:medium"></span><p style="color:rgb(0,0,0);font-family:Times;font-size:medium"></p><h3 style="color:rgb(0,0,0);font-family:Times"><font color="#CC3333">Input Parameters</font></h3><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(0,0,0);font-family:Times;font-size:medium"><tbody><tr><td width="40"></td><td align="LEFT" valign="TOP"><b><span>sp</span></b></td><td>- the null space object</td></tr><tr><td width="40"></td><td align="LEFT" valign="TOP"><b>rem</b></td><td>- the function that removes the null space<br></td></tr><tr><td width="40"></td><td align="LEFT" valign="TOP"><b><span>ctx</span></b></td><td>- context for the remove function<br><br><br></td></tr></tbody></table></div>
</div></div></div></div>

<br>
<div><hr></div><font face="Arial" size="1">This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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</div>
</div></div>