84 | | <a name="l00032"></a>00032 <span class="keywordflow">if</span> (S.exists(<span class="stringliteral">"mu0"</span>)){mu0=getvec(S[<span class="stringliteral">"mu0"</span>]);}<span class="keywordflow">else</span>{mu0=<a class="code" href="group__specmat.html#g10723ecada06221cbe64fe2736a59de1" title="A Double (rows,cols)-matrix of zeros.">zeros</a>(dim);}; |
85 | | <a name="l00033"></a>00033 <span class="keywordflow">if</span> (S.exists(<span class="stringliteral">"P0"</span>)){P0=getmat(S[<span class="stringliteral">"P0"</span>],dim);}<span class="keywordflow">else</span>{P0=<a class="code" href="group__specmat.html#gbfc73e72a56769280cd9fda812367196" title="A non-copying version of the eye function.">eye</a>(dim);}; |
86 | | <a name="l00034"></a>00034 <span class="keywordflow">if</span> (S.exists(<span class="stringliteral">"dP0"</span>)){P0=<a class="code" href="group__diag.html#gb0938c932c1cbc19b2ce6c5ac1007553" title="Get the diagonal elements of the input matrix m.">diag</a>(getvec(S[<span class="stringliteral">"dP0"</span>]));}<span class="keywordflow">else</span>{P0=<a class="code" href="group__specmat.html#gbfc73e72a56769280cd9fda812367196" title="A non-copying version of the eye function.">eye</a>(dim);}; |
| 84 | <a name="l00032"></a>00032 <span class="keywordflow">if</span> (S.exists(<span class="stringliteral">"mu0"</span>)){mu0=getvec(S[<span class="stringliteral">"mu0"</span>]);}<span class="keywordflow">else</span>{mu0=zeros(dim);}; |
| 85 | <a name="l00033"></a>00033 <span class="keywordflow">if</span> (S.exists(<span class="stringliteral">"P0"</span>)){P0=getmat(S[<span class="stringliteral">"P0"</span>],dim);}<span class="keywordflow">else</span>{P0=eye(dim);}; |
| 86 | <a name="l00034"></a>00034 <span class="keywordflow">if</span> (S.exists(<span class="stringliteral">"dP0"</span>)){P0=diag(getvec(S[<span class="stringliteral">"dP0"</span>]));}<span class="keywordflow">else</span>{P0=eye(dim);}; |
112 | | <a name="l00060"></a>00060 Setting& <a class="code" href="group__miscfunc.html#g441f466a2b056fe5f2b05fcd894c472f" title="Calculates the modulus, i.e. the signed reminder after division.">mod</a>=S[<span class="stringliteral">"models"</span>]; |
113 | | <a name="l00061"></a>00061 A.<a class="code" href="classitpp_1_1Array.html#3709407656d26aae2c5d3e844316d4e0" title="Resizing an Array&lt;T&gt;.">set_length</a>(mod.getLength()); |
114 | | <a name="l00062"></a>00062 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0;i<A.<a class="code" href="classitpp_1_1Array.html#53629018f146084de506c33c69fa19a3" title="Returns the number of data elements in the array object.">length</a>();i++){ |
| 112 | <a name="l00060"></a>00060 Setting& mod=S[<span class="stringliteral">"models"</span>]; |
| 113 | <a name="l00061"></a>00061 A.set_length(mod.getLength()); |
| 114 | <a name="l00062"></a>00062 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0;i<A.length();i++){ |