Changeset 353 for doc/html/model_8h-source.html
- Timestamp:
- 06/02/09 10:08:06 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/model_8h-source.html
r323 r353 80 80 <a name="l00019"></a><a class="code" href="classIMk1.html#8957f00622352dcacd64518136c7da33">00019</a> vec <a class="code" href="classIMk1.html#8957f00622352dcacd64518136c7da33" title="Evaluates .">eval</a> ( <span class="keyword">const</span> vec &x0, <span class="keyword">const</span> vec &u0 ) { 81 81 <a name="l00020"></a>00020 <span class="comment">// napln stav nulami</span> 82 <a name="l00021"></a>00021 vec xk= zeros( <a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a> );82 <a name="l00021"></a>00021 vec xk=<a class="code" href="group__specmat.html#g10723ecada06221cbe64fe2736a59de1" title="A Double (rows,cols)-matrix of zeros.">zeros</a> ( <a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a> ); 83 83 <a name="l00022"></a>00022 84 84 <a name="l00023"></a>00023 xk ( 0 ) = 0.2* x0(1) - 0.1* x0(2)+ u0(0); <span class="comment">// vycucane z prstu</span> … … 94 94 <a name="l00033"></a>00033 95 95 <a name="l00034"></a>00034 <span class="keywordflow">if</span> (full) { <span class="comment">// priznak full se nastavi na zacatku => je treba naplnit celou matici</span> 96 <a name="l00035"></a>00035 A = eye(<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>);96 <a name="l00035"></a>00035 A = <a class="code" href="group__specmat.html#gbfc73e72a56769280cd9fda812367196" title="A non-copying version of the eye function.">eye</a>(<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>); 97 97 <a name="l00036"></a>00036 A(0,1) = 0.2; 98 98 <a name="l00037"></a>00037 A(0,2) = -0.1; … … 101 101 <a name="l00040"></a>00040 } 102 102 <a name="l00041"></a>00041 103 <a name="l00042"></a><a class="code" href="classIMk1.html#2b85f0984da3fe55849bb7b28f66e50c">00042</a> <span class="keywordtype">void</span> <a class="code" href="classIMk1.html#2b85f0984da3fe55849bb7b28f66e50c" title="Evaluates and writes result into A .">dfdu_cond</a> ( <span class="keyword">const</span> vec &x0, <span class="keyword">const</span> vec &u0, mat &A, <span class="keywordtype">bool</span> full=<span class="keyword">true</span> ) { it_error( <span class="stringliteral">"not needed"</span> );};103 <a name="l00042"></a><a class="code" href="classIMk1.html#2b85f0984da3fe55849bb7b28f66e50c">00042</a> <span class="keywordtype">void</span> <a class="code" href="classIMk1.html#2b85f0984da3fe55849bb7b28f66e50c" title="Evaluates and writes result into A .">dfdu_cond</a> ( <span class="keyword">const</span> vec &x0, <span class="keyword">const</span> vec &u0, mat &A, <span class="keywordtype">bool</span> full=<span class="keyword">true</span> ) {<a class="code" href="group__errorhandlingfunc.html#g22d38e98332f9edff88cc501463eedce" title="Abort unconditionally.">it_error</a> ( <span class="stringliteral">"not needed"</span> );}; 104 104 <a name="l00043"></a>00043 105 105 <a name="l00044"></a>00044 }; … … 121 121 <a name="l00062"></a>00062 122 122 <a name="l00063"></a>00063 <span class="keywordflow">if</span> (full) { <span class="comment">// priznak full se nastavi na zacatku => je treba naplnit celou matici</span> 123 <a name="l00064"></a>00064 A = zeros(<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>,<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>);123 <a name="l00064"></a>00064 A = <a class="code" href="group__specmat.html#g10723ecada06221cbe64fe2736a59de1" title="A Double (rows,cols)-matrix of zeros.">zeros</a>(<a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>,<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>); 124 124 <a name="l00065"></a>00065 A(0,0)=1.0; 125 125 <a name="l00066"></a>00066 A(1,1)=1.0; … … 130 130 <a name="l00071"></a>00071 <span class="preprocessor">#endif //MODEL_H</span> 131 131 </pre></div></div> 132 <hr size="1"><address style="text-align: right;"><small>Generated on T hu Apr 23 21:06:42 2009 for mixpp by 132 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:12 2009 for mixpp by 133 133 <a href="http://www.doxygen.org/index.html"> 134 134 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>