title="function x = solve_quadratic2(A,c,B,D,seed)">solve_quadratic2</a>	x = solve_quadratic2(A,c,B,D,seed)</li></ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function f = solve_quadratic2_fct(l,A,B,c,D)</a>
0002 
0003 xx = inv( A + 1/2 * squeeze(tensor_product(l',D,2,1)) ) * B' * l;
0004 
0005 f  = - B * xx + 1/2 * tensor_product(t