Show
Ignore:
Timestamp:
06/02/09 10:08:06 (15 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/html/libFN_8h-source.html

    r323 r353  
    9797<a name="l00041"></a>00041                 vec B; 
    9898<a name="l00042"></a>00042         <span class="keyword">public</span> : 
    99 <a name="l00043"></a><a class="code" href="classbdm_1_1linfn.html#b8063094a2aa210dcf7ae73e2b85e09c">00043</a>                 vec <a class="code" href="classbdm_1_1linfn.html#b8063094a2aa210dcf7ae73e2b85e09c" title="function evaluates numerical value of  at  cond ">eval</a> (<span class="keyword">const</span> vec &amp;cond ) {it_assert_debug ( cond.length() ==A.cols(), <span class="stringliteral">"linfn::eval Wrong cond."</span> );<span class="keywordflow">return</span> A*cond+B;}; 
     99<a name="l00043"></a><a class="code" href="classbdm_1_1linfn.html#b8063094a2aa210dcf7ae73e2b85e09c">00043</a>                 vec <a class="code" href="classbdm_1_1linfn.html#b8063094a2aa210dcf7ae73e2b85e09c" title="function evaluates numerical value of  at  cond ">eval</a> (<span class="keyword">const</span> vec &amp;cond ) {<a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a> ( cond.length() ==A.cols(), <span class="stringliteral">"linfn::eval Wrong cond."</span> );<span class="keywordflow">return</span> A*cond+B;}; 
    100100<a name="l00044"></a>00044  
    101101<a name="l00045"></a>00045 <span class="comment">//              linfn evalsome ( ivec &amp;rvind );</span> 
     
    115115<a name="l00075"></a><a class="code" href="classbdm_1_1diffbifn.html#188f31066bd72e1bf0ddacd1eb0e6af3">00075</a>                 vec <a class="code" href="classbdm_1_1diffbifn.html#188f31066bd72e1bf0ddacd1eb0e6af3" title="Evaluates  (VS: Do we really need common eval? ).">eval</a> ( <span class="keyword">const</span> vec &amp;cond ) 
    116116<a name="l00076"></a>00076                 { 
    117 <a name="l00077"></a>00077                         it_assert_debug ( cond.length() == ( <a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>+<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a> ), <span class="stringliteral">"linfn::eval Wrong cond."</span> ); 
     117<a name="l00077"></a>00077                         <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a> ( cond.length() == ( <a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>+<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a> ), <span class="stringliteral">"linfn::eval Wrong cond."</span> ); 
    118118<a name="l00078"></a>00078                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1diffbifn.html#188f31066bd72e1bf0ddacd1eb0e6af3" title="Evaluates  (VS: Do we really need common eval? ).">eval</a> ( cond ( 0,<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>-1 ),cond ( <a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>,<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>+<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a> ) );<span class="comment">//-1 = end (in matlab)</span> 
    119119<a name="l00079"></a>00079                 }; 
    120120<a name="l00080"></a>00080  
    121 <a name="l00082"></a><a class="code" href="classbdm_1_1diffbifn.html#b5462c05b58cd38367ff946836bb82d3">00082</a>                 <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1diffbifn.html#b5462c05b58cd38367ff946836bb82d3" title="Evaluates .">eval</a> ( <span class="keyword">const</span> vec &amp;x0, <span class="keyword">const</span> vec &amp;u0 ) {<span class="keywordflow">return</span> zeros ( <a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a> );}; 
     121<a name="l00082"></a><a class="code" href="classbdm_1_1diffbifn.html#b5462c05b58cd38367ff946836bb82d3">00082</a>                 <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1diffbifn.html#b5462c05b58cd38367ff946836bb82d3" title="Evaluates .">eval</a> ( <span class="keyword">const</span> vec &amp;x0, <span class="keyword">const</span> vec &amp;u0 ) {<span class="keywordflow">return</span> <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> );}; 
    122122<a name="l00084"></a><a class="code" href="classbdm_1_1diffbifn.html#651184f808a35f236dbfea21aca1b6ac">00084</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1diffbifn.html#651184f808a35f236dbfea21aca1b6ac" title="Evaluates  and writes result into A .">dfdx_cond</a> ( <span class="keyword">const</span> vec &amp;x0, <span class="keyword">const</span> vec &amp;u0, mat &amp;A , <span class="keywordtype">bool</span> full=<span class="keyword">true</span> ) {}; 
    123123<a name="l00086"></a><a class="code" href="classbdm_1_1diffbifn.html#6ea1dc7a482601b29c5ba36a52d20d07">00086</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1diffbifn.html#6ea1dc7a482601b29c5ba36a52d20d07" title="Evaluates  and writes result into A .">dfdu_cond</a> ( <span class="keyword">const</span> vec &amp;x0, <span class="keyword">const</span> vec &amp;u0, mat &amp;A, <span class="keywordtype">bool</span> full=<span class="keyword">true</span> ) {}; 
     
    137137<a name="l00106"></a>00106                 <a class="code" href="classbdm_1_1bilinfn.html" title="Class representing function .">bilinfn</a> (<span class="keyword">const</span> mat A0, <span class="keyword">const</span> mat B0) {<a class="code" href="classbdm_1_1bilinfn.html#5a508fbb5fc013904d9b62b2231442de" title="Alternative constructor.">set_parameters</a>(A0,B0);}; 
    138138<a name="l00108"></a><a class="code" href="classbdm_1_1bilinfn.html#5a508fbb5fc013904d9b62b2231442de">00108</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1bilinfn.html#5a508fbb5fc013904d9b62b2231442de" title="Alternative constructor.">set_parameters</a>(<span class="keyword">const</span> mat A0, <span class="keyword">const</span> mat B0){ 
    139 <a name="l00109"></a>00109                         it_assert_debug(A0.rows()==B0.rows(),<span class="stringliteral">""</span>); 
     139<a name="l00109"></a>00109                         <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a>(A0.rows()==B0.rows(),<span class="stringliteral">""</span>); 
    140140<a name="l00110"></a>00110                         A=A0;B=B0; 
    141141<a name="l00111"></a>00111                         <a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>=A.rows(); 
     
    146146<a name="l00119"></a><a class="code" href="classbdm_1_1bilinfn.html#846c21e8e8d41555eb7c075f5ff86ffd">00119</a>                 <span class="keyword">inline</span> vec <a class="code" href="classbdm_1_1bilinfn.html#846c21e8e8d41555eb7c075f5ff86ffd" title="Evaluates .">eval</a> ( <span class="keyword">const</span>  vec &amp;x0, <span class="keyword">const</span> vec &amp;u0 ) 
    147147<a name="l00120"></a>00120                 { 
    148 <a name="l00121"></a>00121                         it_assert_debug ( x0.length() ==<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>, <span class="stringliteral">"linfn::eval Wrong xcond."</span> ); 
    149 <a name="l00122"></a>00122                         it_assert_debug ( u0.length() ==<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a>, <span class="stringliteral">"linfn::eval Wrong ucond."</span> ); 
     148<a name="l00121"></a>00121                         <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a> ( x0.length() ==<a class="code" href="classbdm_1_1diffbifn.html#a193aa2c4a500139c0c4b669691e588e" title="cache for rvx.count()">dimx</a>, <span class="stringliteral">"linfn::eval Wrong xcond."</span> ); 
     149<a name="l00122"></a>00122                         <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a> ( u0.length() ==<a class="code" href="classbdm_1_1diffbifn.html#30c45617eec89adeb4ebaa763d093fb0" title="cache for rvu.count()">dimu</a>, <span class="stringliteral">"linfn::eval Wrong ucond."</span> ); 
    150150<a name="l00123"></a>00123                         <span class="keywordflow">return</span> A*x0+B*u0; 
    151151<a name="l00124"></a>00124                 } 
     
    153153<a name="l00126"></a><a class="code" href="classbdm_1_1bilinfn.html#33066f1054dd259df2ec5fafae4b46e6">00126</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1bilinfn.html#33066f1054dd259df2ec5fafae4b46e6" title="Evaluates  and writes result into A .">dfdx_cond</a> ( <span class="keyword">const</span> vec &amp;x0, <span class="keyword">const</span> vec &amp;u0, mat &amp;F, <span class="keywordtype">bool</span> full ) 
    154154<a name="l00127"></a>00127                 { 
    155 <a name="l00128"></a>00128                         it_assert_debug ( ( F.cols() ==A.cols() ) &amp; ( F.rows() ==A.rows() ),<span class="stringliteral">"Allocated F is not compatible."</span> ); 
     155<a name="l00128"></a>00128                         <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a> ( ( F.cols() ==A.cols() ) &amp; ( F.rows() ==A.rows() ),<span class="stringliteral">"Allocated F is not compatible."</span> ); 
    156156<a name="l00129"></a>00129                         <span class="keywordflow">if</span> ( full ) F=A;        <span class="comment">//else : nothing has changed no need to regenerate</span> 
    157157<a name="l00130"></a>00130                 } 
    158158<a name="l00132"></a><a class="code" href="classbdm_1_1bilinfn.html#9cfe2f1c115ba7c3c75849a10a4f2c08">00132</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1bilinfn.html#9cfe2f1c115ba7c3c75849a10a4f2c08" title="Evaluates  and writes result into A .">dfdu_cond</a> ( <span class="keyword">const</span> vec &amp;x0, <span class="keyword">const</span> vec &amp;u0, mat &amp;F,  <span class="keywordtype">bool</span> full=<span class="keyword">true</span> ) 
    159159<a name="l00133"></a>00133                 { 
    160 <a name="l00134"></a>00134                         it_assert_debug ( ( F.cols() ==B.cols() ) &amp; ( F.rows() ==B.rows() ),<span class="stringliteral">"Allocated F is not compatible."</span> ); 
     160<a name="l00134"></a>00134                         <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a> ( ( F.cols() ==B.cols() ) &amp; ( F.rows() ==B.rows() ),<span class="stringliteral">"Allocated F is not compatible."</span> ); 
    161161<a name="l00135"></a>00135                         <span class="keywordflow">if</span> ( full ) F=B;        <span class="comment">//else : nothing has changed no need to regenerate</span> 
    162162<a name="l00136"></a>00136                 } 
     
    166166<a name="l00141"></a>00141 <span class="preprocessor">#endif // FN_H</span> 
    167167</pre></div></div> 
    168 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 23 21:06:42 2009 for mixpp by&nbsp; 
     168<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:12 2009 for mixpp by&nbsp; 
    169169<a href="http://www.doxygen.org/index.html"> 
    170170<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>