<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I need to use the kspsolve(A,b,x) repeatly in my code in the following style.</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">but i have noticed from the system load monitor that during the code running, it allocate new memeory every step.</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I use the default setting for the PC. </div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Could you please told me how to resolve this problem.</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br></div><div style="line-height:1.7;color:#000000;
 
 font-size:14px;font-family:arial"><br></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span style="font-size: 14px; line-height: 1.7; ">for (int i=0;i<maxit;i++)</span></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">{</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">MatsetValues(    )....</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">kspsolve(A,b,x)</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">}<br><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><
 
 span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>