Show
Ignore:
Timestamp:
08/16/09 18:14:04 (15 years ago)
Author:
smidl
Message:

Documentation regenerated

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/square__mat_8h-source.html

    r401 r538  
    5252      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li> 
    5353      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> 
    54       <li><a href="modules.html"><span>Modules</span></a></li> 
    5554      <li><a href="annotated.html"><span>Classes</span></a></li> 
    5655      <li class="current"><a href="files.html"><span>Files</span></a></li> 
     
    7069<a name="l00017"></a>00017 <span class="preprocessor">#include "../itpp_ext.h"</span> 
    7170<a name="l00018"></a>00018  
    72 <a name="l00024"></a>00024 <span class="keyword">using namespace </span>itpp; 
    73 <a name="l00025"></a>00025  
    74 <a name="l00027"></a>00027 <span class="keywordtype">void</span> <a class="code" href="group__math.html#g4ed56e73b49db8e7f4a63fa926a8dca4" title="Auxiliary function dydr; dyadic reduction.">dydr</a>( <span class="keywordtype">double</span> * r, <span class="keywordtype">double</span> *f, <span class="keywordtype">double</span> *Dr, <span class="keywordtype">double</span> *Df, <span class="keywordtype">double</span> *R, <span class="keywordtype">int</span> jl, <span class="keywordtype">int</span> jh, <span class="keywordtype">double</span> *kr, <span class="keywordtype">int</span> m, <span class="keywordtype">int</span> mx ); 
    75 <a name="l00028"></a>00028  
    76 <a name="l00030"></a>00030 <span class="comment">//TODO can be done via: dtrtri.f from lapack</span> 
    77 <a name="l00031"></a>00031 mat <a class="code" href="group__math.html#g6715d039e6d5d97005cf9e2522dfa474" title="Auxiliary function ltuinv; inversion of a triangular matrix;.">ltuinv</a>( <span class="keyword">const</span> mat &amp;L ); 
    78 <a name="l00032"></a>00032  
    79 <a name="l00037"></a><a class="code" href="classsqmat.html">00037</a> <span class="keyword">class </span><a class="code" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a> 
    80 <a name="l00038"></a>00038 { 
    81 <a name="l00039"></a>00039         <span class="keyword">public</span>: 
    82 <a name="l00047"></a>00047                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsqmat.html#b223484796661f2dadb5607a86ce0581">opupdt</a> ( <span class="keyword">const</span> vec &amp;v, <span class="keywordtype">double</span> w ) =0; 
    83 <a name="l00048"></a>00048  
    84 <a name="l00052"></a>00052                 <span class="keyword">virtual</span> mat <a class="code" href="classsqmat.html#cd0ea3701e4493f353499755fba6e07f" title="Conversion to full matrix.">to_mat</a>() <span class="keyword">const</span> =0; 
    85 <a name="l00053"></a>00053  
    86 <a name="l00057"></a>00057                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsqmat.html#60fbbfa9e483b8187c135f787ee53afa" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C ) =0; 
    87 <a name="l00058"></a>00058                  
    88 <a name="l00062"></a>00062                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsqmat.html#6909e906da17725b1b80f3cae7cf3325" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C ) =0; 
    89 <a name="l00063"></a>00063  
    90 <a name="l00064"></a>00064  
    91 <a name="l00069"></a>00069                 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsqmat.html#0a772b396750eeeed85d69fa72478b45" title="Logarithm of a determinant.">logdet</a>() <span class="keyword">const</span> =0; 
    92 <a name="l00070"></a>00070  
    93 <a name="l00076"></a>00076                 <span class="keyword">virtual</span> vec <a class="code" href="classsqmat.html#6b79438b5d7544a9c8e110a145355d8f" title="Multiplies square root of  by vector .">sqrt_mult</a> (<span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span> =0; 
    94 <a name="l00077"></a>00077  
    95 <a name="l00082"></a>00082                 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsqmat.html#fc026312eb02ba09f85d5aacd6f05ab3" title="Evaluates quadratic form ;.">qform</a> (<span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span> =0; 
    96 <a name="l00083"></a>00083  
    97 <a name="l00088"></a>00088                 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsqmat.html#6230e8e8a9341866aaa0ce008691aac2" title="Evaluates quadratic form ;.">invqform</a> (<span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span> =0; 
     71<a name="l00019"></a>00019 <span class="keyword">namespace </span>bdm 
     72<a name="l00020"></a>00020 { 
     73<a name="l00021"></a>00021  
     74<a name="l00022"></a>00022 <span class="keyword">using namespace </span>itpp; 
     75<a name="l00023"></a>00023  
     76<a name="l00025"></a>00025 <span class="keywordtype">void</span> dydr ( <span class="keywordtype">double</span> * r, <span class="keywordtype">double</span> *f, <span class="keywordtype">double</span> *Dr, <span class="keywordtype">double</span> *Df, <span class="keywordtype">double</span> *R, <span class="keywordtype">int</span> jl, <span class="keywordtype">int</span> jh, <span class="keywordtype">double</span> *kr, <span class="keywordtype">int</span> m, <span class="keywordtype">int</span> mx ); 
     77<a name="l00026"></a>00026  
     78<a name="l00028"></a>00028 <span class="comment">//TODO can be done via: dtrtri.f from lapack</span> 
     79<a name="l00029"></a>00029 mat ltuinv ( <span class="keyword">const</span> mat &amp;L ); 
     80<a name="l00030"></a>00030  
     81<a name="l00035"></a><a class="code" href="classbdm_1_1sqmat.html">00035</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> { 
     82<a name="l00036"></a>00036 <span class="keyword">public</span>: 
     83<a name="l00044"></a>00044         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1sqmat.html#cb3b3eef10b0c1f41ead717d3ad40ec5">opupdt</a> ( <span class="keyword">const</span> vec &amp;v, <span class="keywordtype">double</span> w ) = 0; 
     84<a name="l00045"></a>00045  
     85<a name="l00049"></a>00049         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1sqmat.html#ee9c751c4b506c29dc65c2b61487e1ad" title="Conversion to full matrix.">to_mat</a>() <span class="keyword">const</span> = 0; 
     86<a name="l00050"></a>00050  
     87<a name="l00054"></a>00054         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1sqmat.html#742581db1f8ce9602ec1c3e6373e499c" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C ) = 0; 
     88<a name="l00055"></a>00055  
     89<a name="l00059"></a>00059         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1sqmat.html#2db6f35ac14e6d1d905b4100e4c13743" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C ) = 0; 
     90<a name="l00060"></a>00060  
     91<a name="l00061"></a>00061  
     92<a name="l00066"></a>00066         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1sqmat.html#121b108a818c0388a46866ad34ae9242" title="Logarithm of a determinant.">logdet</a>() <span class="keyword">const</span> = 0; 
     93<a name="l00067"></a>00067  
     94<a name="l00073"></a>00073         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1sqmat.html#608bfff59854833f1acfccdbd346832a" title="Multiplies square root of  by vector .">sqrt_mult</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span> = 0; 
     95<a name="l00074"></a>00074  
     96<a name="l00079"></a>00079         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1sqmat.html#c2b7450ba7cf9068ab332f8abdf065f7" title="Evaluates quadratic form ;.">qform</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span> = 0; 
     97<a name="l00080"></a>00080  
     98<a name="l00085"></a>00085         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1sqmat.html#5e5e62419aa9ab15556dd49e5a9ad6ed" title="Evaluates quadratic form ;.">invqform</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span> = 0; 
     99<a name="l00086"></a>00086  
     100<a name="l00087"></a>00087 <span class="comment">//      //! easy version of the</span> 
     101<a name="l00088"></a>00088 <span class="comment">//      sqmat inv();</span> 
    98102<a name="l00089"></a>00089  
    99 <a name="l00090"></a>00090 <span class="comment">//      //! easy version of the</span> 
    100 <a name="l00091"></a>00091 <span class="comment">//      sqmat inv();</span> 
     103<a name="l00091"></a>00091         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1sqmat.html#b24649cb221296e633d658c8aba2c9d8" title="Clearing matrix so that it corresponds to zeros.">clear</a>() = 0; 
    101104<a name="l00092"></a>00092  
    102 <a name="l00094"></a>00094                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsqmat.html#6fca246f9eabbdeb8cac03030e826b5e" title="Clearing matrix so that it corresponds to zeros.">clear</a>() =0; 
    103 <a name="l00095"></a>00095  
    104 <a name="l00097"></a><a class="code" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b">00097</a>                 <span class="keywordtype">int</span> <a class="code" href="classsqmat.html#ecc2e2540f95a04f4449842588170f5b" title="Reimplementing common functions of mat: cols().">cols</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;}; 
    105 <a name="l00098"></a>00098  
    106 <a name="l00100"></a><a class="code" href="classsqmat.html#071e80ced9cc3b8cbb360fa7462eb646">00100</a>                 <span class="keywordtype">int</span> <a class="code" href="classsqmat.html#071e80ced9cc3b8cbb360fa7462eb646" title="Reimplementing common functions of mat: cols().">rows</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;}; 
    107 <a name="l00101"></a>00101  
    108 <a name="l00103"></a><a class="code" href="classsqmat.html#0481f2067bb32aaea7e6d4f27e46b656">00103</a>                 <span class="keyword">virtual</span> <a class="code" href="classsqmat.html#0481f2067bb32aaea7e6d4f27e46b656" title="Destructor for future use;.">~sqmat</a>(){}; 
    109 <a name="l00105"></a><a class="code" href="classsqmat.html#4268750c040c716b2c05037f725078a2">00105</a>                 <a class="code" href="classsqmat.html#4268750c040c716b2c05037f725078a2" title="Default constructor.">sqmat</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> dim0): <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>(dim0){}; 
    110 <a name="l00107"></a><a class="code" href="classsqmat.html#5493a4a11a2b3c41de9cdd8ce305bb44">00107</a>                 <a class="code" href="classsqmat.html#5493a4a11a2b3c41de9cdd8ce305bb44" title="Default constructor.">sqmat</a>(): <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>(0){}; 
    111 <a name="l00108"></a>00108         <span class="keyword">protected</span>: 
    112 <a name="l00110"></a>00110                 <span class="keywordtype">int</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>; 
    113 <a name="l00111"></a>00111 }; 
    114 <a name="l00112"></a>00112  
     105<a name="l00094"></a><a class="code" href="classbdm_1_1sqmat.html#445ef762cf5d2d6cfdf53c72942363cf">00094</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1sqmat.html#445ef762cf5d2d6cfdf53c72942363cf" title="Reimplementing common functions of mat: cols().">cols</a>()<span class="keyword"> const </span>{ 
     106<a name="l00095"></a>00095                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1sqmat.html#05111b5744a494880e62cb0f3d42293f" title="dimension of the square matrix">dim</a>; 
     107<a name="l00096"></a>00096         }; 
     108<a name="l00097"></a>00097  
     109<a name="l00099"></a><a class="code" href="classbdm_1_1sqmat.html#73e639221343dcce76c3305524d67590">00099</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1sqmat.html#73e639221343dcce76c3305524d67590" title="Reimplementing common functions of mat: rows().">rows</a>()<span class="keyword"> const </span>{ 
     110<a name="l00100"></a>00100                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1sqmat.html#05111b5744a494880e62cb0f3d42293f" title="dimension of the square matrix">dim</a>; 
     111<a name="l00101"></a>00101         }; 
     112<a name="l00102"></a>00102  
     113<a name="l00104"></a><a class="code" href="classbdm_1_1sqmat.html#33a9a1ec2f66b6c1e3081e5e65c36d0e">00104</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1sqmat.html#33a9a1ec2f66b6c1e3081e5e65c36d0e" title="Destructor for future use;.">~sqmat</a>() {}; 
     114<a name="l00106"></a><a class="code" href="classbdm_1_1sqmat.html#3d304dccc155638c6d435cd1c0611dfc">00106</a>         <a class="code" href="classbdm_1_1sqmat.html#3d304dccc155638c6d435cd1c0611dfc" title="Default constructor.">sqmat</a> ( <span class="keyword">const</span> <span class="keywordtype">int</span> dim0 ) : <a class="code" href="classbdm_1_1sqmat.html#05111b5744a494880e62cb0f3d42293f" title="dimension of the square matrix">dim</a> ( dim0 ) {}; 
     115<a name="l00108"></a><a class="code" href="classbdm_1_1sqmat.html#3051f1734d36cce6c58c799fdd4451bb">00108</a>         <a class="code" href="classbdm_1_1sqmat.html#3051f1734d36cce6c58c799fdd4451bb" title="Default constructor.">sqmat</a>() : <a class="code" href="classbdm_1_1sqmat.html#05111b5744a494880e62cb0f3d42293f" title="dimension of the square matrix">dim</a> ( 0 ) {}; 
     116<a name="l00109"></a>00109 <span class="keyword">protected</span>: 
     117<a name="l00111"></a>00111         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1sqmat.html#05111b5744a494880e62cb0f3d42293f" title="dimension of the square matrix">dim</a>; 
     118<a name="l00112"></a>00112 }; 
    115119<a name="l00113"></a>00113  
    116 <a name="l00118"></a><a class="code" href="classfsqmat.html">00118</a> <span class="keyword">class </span><a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>: <span class="keyword">public</span> <a class="code" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a> 
    117 <a name="l00119"></a>00119 { 
    118 <a name="l00120"></a>00120         <span class="keyword">protected</span>: 
    119 <a name="l00122"></a><a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453">00122</a>                 mat <a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>; 
    120 <a name="l00123"></a>00123         <span class="keyword">public</span>: 
    121 <a name="l00124"></a>00124                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#b36530e155667fe9f1bd58394e50c65a">opupdt</a> ( <span class="keyword">const</span> vec &amp;v, <span class="keywordtype">double</span> w ); 
    122 <a name="l00125"></a>00125                 mat <a class="code" href="classfsqmat.html#f54fc955e8e3b43d15afa92124bc24b3" title="Conversion to full matrix.">to_mat</a>() <span class="keyword">const</span>; 
    123 <a name="l00126"></a>00126                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#5530d2756b5d991de755e6121c9a452e" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C); 
    124 <a name="l00127"></a>00127                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#92052a8adc2054b63e42d1373d145c89" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C); 
    125 <a name="l00129"></a>00129                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#5530d2756b5d991de755e6121c9a452e" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;U) <span class="keyword">const</span>; 
    126 <a name="l00131"></a>00131                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#92052a8adc2054b63e42d1373d145c89" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;U) <span class="keyword">const</span>; 
    127 <a name="l00132"></a>00132                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#cfa4c359483d2322f32d1d50050f8ac4" title="Clearing matrix so that it corresponds to zeros.">clear</a>(); 
     120<a name="l00114"></a>00114  
     121<a name="l00119"></a><a class="code" href="classbdm_1_1fsqmat.html">00119</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> { 
     122<a name="l00120"></a>00120 <span class="keyword">protected</span>: 
     123<a name="l00122"></a><a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03">00122</a>         mat <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a>; 
     124<a name="l00123"></a>00123 <span class="keyword">public</span>: 
     125<a name="l00124"></a>00124         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#a41b3686a77d1f9657b6942b01cfd8be">opupdt</a> ( <span class="keyword">const</span> vec &amp;v, <span class="keywordtype">double</span> w ); 
     126<a name="l00125"></a>00125         mat <a class="code" href="classbdm_1_1fsqmat.html#5c27d47cd0fa7ae686d4519f89a3c9b0" title="Conversion to full matrix.">to_mat</a>() <span class="keyword">const</span>; 
     127<a name="l00126"></a>00126         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#fca713af3f74677fd7fbafe723590112" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C ); 
     128<a name="l00127"></a>00127         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#0f6b7cf09daf484f29ea99a144a27039" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C ); 
     129<a name="l00129"></a>00129         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#fca713af3f74677fd7fbafe723590112" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;U ) <span class="keyword">const</span>; 
     130<a name="l00131"></a>00131         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#0f6b7cf09daf484f29ea99a144a27039" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;U ) <span class="keyword">const</span>; 
     131<a name="l00132"></a>00132         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#8ba3bc2f92b3fc6cfc90f21b3a5a5ada" title="Clearing matrix so that it corresponds to zeros.">clear</a>(); 
    128132<a name="l00133"></a>00133  
    129 <a name="l00135"></a><a class="code" href="classfsqmat.html#79e3f73e0ccd663c7f7e08083d272940">00135</a>                 <a class="code" href="classfsqmat.html#79e3f73e0ccd663c7f7e08083d272940" title="Default initialization.">fsqmat</a>(){}; <span class="comment">// mat will be initialized OK</span> 
    130 <a name="l00137"></a>00137 <span class="comment"></span>                <a class="code" href="classfsqmat.html#79e3f73e0ccd663c7f7e08083d272940" title="Default initialization.">fsqmat</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> dim0); <span class="comment">// mat will be initialized OK</span> 
    131 <a name="l00139"></a>00139 <span class="comment"></span>                <a class="code" href="classfsqmat.html#79e3f73e0ccd663c7f7e08083d272940" title="Default initialization.">fsqmat</a> ( <span class="keyword">const</span> mat &amp;<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a> ); 
    132 <a name="l00141"></a><a class="code" href="classfsqmat.html#9e19a5e26083f4a493b6fad38cc40fab">00141</a>                 <a class="code" href="classfsqmat.html#9e19a5e26083f4a493b6fad38cc40fab" title="Constructor.">fsqmat</a> ( <span class="keyword">const</span> <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>, <span class="keyword">const</span> ivec &amp;perm ):<a class="code" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a>(M.<a class="code" href="classsqmat.html#071e80ced9cc3b8cbb360fa7462eb646" title="Reimplementing common functions of mat: cols().">rows</a>()){it_error(<span class="stringliteral">"not implemneted"</span>);}; 
    133 <a name="l00143"></a><a class="code" href="classfsqmat.html#c01f3e9bb590f2a2921369d672f3ce1e">00143</a>                 <a class="code" href="classfsqmat.html#c01f3e9bb590f2a2921369d672f3ce1e" title="Constructor.">fsqmat</a> ( <span class="keyword">const</span> vec &amp;d ):<a class="code" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a>(d.length()){<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>=diag(d);}; 
    134 <a name="l00144"></a>00144  
    135 <a name="l00146"></a><a class="code" href="classfsqmat.html#2a8f104e4befbc2aa90d8b11edfedb2e">00146</a>                 <span class="keyword">virtual</span> <a class="code" href="classfsqmat.html#2a8f104e4befbc2aa90d8b11edfedb2e" title="Destructor for future use;.">~fsqmat</a>(){}; 
    136 <a name="l00147"></a>00147  
     133<a name="l00135"></a><a class="code" href="classbdm_1_1fsqmat.html#d9461412d5087d685a3213671446f143">00135</a>         <a class="code" href="classbdm_1_1fsqmat.html#d9461412d5087d685a3213671446f143" title="Default initialization.">fsqmat</a>() {}; <span class="comment">// mat will be initialized OK</span> 
     134<a name="l00137"></a>00137 <span class="comment"></span>        <a class="code" href="classbdm_1_1fsqmat.html#d9461412d5087d685a3213671446f143" title="Default initialization.">fsqmat</a> ( <span class="keyword">const</span> <span class="keywordtype">int</span> dim0 ); <span class="comment">// mat will be initialized OK</span> 
     135<a name="l00139"></a>00139 <span class="comment"></span>        <a class="code" href="classbdm_1_1fsqmat.html#d9461412d5087d685a3213671446f143" title="Default initialization.">fsqmat</a> ( <span class="keyword">const</span> mat &amp;<a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> ); 
     136<a name="l00141"></a><a class="code" href="classbdm_1_1fsqmat.html#8168a96449b2126dfc117c136fdf39d5">00141</a>         <a class="code" href="classbdm_1_1fsqmat.html#8168a96449b2126dfc117c136fdf39d5" title="Constructor.">fsqmat</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;<a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a>, <span class="keyword">const</span> ivec &amp;perm ) : <a class="code" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> ( M.<a class="code" href="classbdm_1_1sqmat.html#73e639221343dcce76c3305524d67590" title="Reimplementing common functions of mat: rows().">rows</a>() ) { 
     137<a name="l00142"></a>00142                 it_error ( <span class="stringliteral">"not implemneted"</span> ); 
     138<a name="l00143"></a>00143         }; 
     139<a name="l00145"></a><a class="code" href="classbdm_1_1fsqmat.html#6203529db9dab639f2c123aac9fb6a6c">00145</a>         <a class="code" href="classbdm_1_1fsqmat.html#6203529db9dab639f2c123aac9fb6a6c" title="Constructor.">fsqmat</a> ( <span class="keyword">const</span> vec &amp;d ) : <a class="code" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> ( d.length() ) { 
     140<a name="l00146"></a>00146                 <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> = diag ( d ); 
     141<a name="l00147"></a>00147         }; 
    137142<a name="l00148"></a>00148  
    138 <a name="l00154"></a>00154                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#9fa853e1ca28f2a1a1c43377e798ecb1" title="Matrix inversion preserving the chosen form.">inv</a> ( <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;Inv ); 
    139 <a name="l00155"></a>00155  
    140 <a name="l00156"></a><a class="code" href="classfsqmat.html#eb0d1358f536e4453b5f99d0418ca1e5">00156</a>                 <span class="keywordtype">double</span> <a class="code" href="classfsqmat.html#eb0d1358f536e4453b5f99d0418ca1e5" title="Logarithm of a determinant.">logdet</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> log ( det ( <a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a> ) );}; 
    141 <a name="l00157"></a><a class="code" href="classfsqmat.html#a6c91b0389e73404324b2314b08d6e87">00157</a>                 <span class="keywordtype">double</span> <a class="code" href="classfsqmat.html#a6c91b0389e73404324b2314b08d6e87" title="Evaluates quadratic form ;.">qform</a> (<span class="keyword">const</span>  vec &amp;v )<span class="keyword"> const </span>{<span class="keywordflow">return</span> ( v* ( <a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>*v ) );}; 
    142 <a name="l00158"></a><a class="code" href="classfsqmat.html#58075da64ddadd4df40654c35b928c6f">00158</a>                 <span class="keywordtype">double</span> <a class="code" href="classfsqmat.html#58075da64ddadd4df40654c35b928c6f" title="Evaluates quadratic form ;.">invqform</a> (<span class="keyword">const</span>  vec &amp;v )<span class="keyword"> const </span>{<span class="keywordflow">return</span> ( v* ( itpp::inv(<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>)*v ) );}; 
    143 <a name="l00159"></a><a class="code" href="classfsqmat.html#842a774077ee34ac3c36d180ab33e103">00159</a>                 vec <a class="code" href="classfsqmat.html#842a774077ee34ac3c36d180ab33e103" title="Multiplies square root of  by vector .">sqrt_mult</a> (<span class="keyword">const</span> vec &amp;v )<span class="keyword"> const </span>{mat Ch=chol(<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>); <span class="keywordflow">return</span> Ch*v;}; 
    144 <a name="l00160"></a>00160  
    145 <a name="l00162"></a><a class="code" href="classfsqmat.html#a2e0bf7dbbbbe1d3358064c4ad455f1f">00162</a>                 <span class="keywordtype">void</span> <span class="keyword">add</span> ( <span class="keyword">const</span> <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;fsq2, <span class="keywordtype">double</span> w=1.0 ){<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>+=fsq2.M;}; 
    146 <a name="l00163"></a>00163  
    147 <a name="l00165"></a><a class="code" href="classfsqmat.html#922f8190c13987cbcdb33ec2bf5cf105">00165</a>                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#922f8190c13987cbcdb33ec2bf5cf105" title="Access functions.">setD</a> (<span class="keyword">const</span> vec &amp;nD){<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>=diag(nD);} 
    148 <a name="l00167"></a><a class="code" href="classfsqmat.html#bcf837b2956745e8986044f5600dbd6e">00167</a>                 vec <a class="code" href="classfsqmat.html#bcf837b2956745e8986044f5600dbd6e" title="Access functions.">getD</a> (){<span class="keywordflow">return</span> diag(<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>);} 
    149 <a name="l00169"></a><a class="code" href="classfsqmat.html#03a8f49eb4d38a054ecc522be59cd2ad">00169</a>                 <span class="keywordtype">void</span> <a class="code" href="classfsqmat.html#03a8f49eb4d38a054ecc522be59cd2ad" title="Access functions.">setD</a> (<span class="keyword">const</span> vec &amp;nD, <span class="keywordtype">int</span> i){<span class="keywordflow">for</span>(<span class="keywordtype">int</span> j=i;j&lt;nD.length();j++){<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>(j,j)=nD(j-i);}} <span class="comment">//Fixme can be more general</span> 
    150 <a name="l00170"></a>00170  
    151 <a name="l00171"></a>00171  
    152 <a name="l00173"></a><a class="code" href="classfsqmat.html#514d1fdd8a382dbd6a774f2cf1ebd3de">00173</a>                 <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>&amp; <a class="code" href="classfsqmat.html#514d1fdd8a382dbd6a774f2cf1ebd3de" title="add another fsqmat matrix">operator += </a>( <span class="keyword">const</span> <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;A ) {<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>+=A.<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>;<span class="keywordflow">return</span> *<span class="keyword">this</span>;}; 
    153 <a name="l00175"></a><a class="code" href="classfsqmat.html#e976bc9d899961e1d2087b0630ed33b7">00175</a>                 <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>&amp; <a class="code" href="classfsqmat.html#e976bc9d899961e1d2087b0630ed33b7" title="subtrack another fsqmat matrix">operator -= </a>( <span class="keyword">const</span> <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;A ) {<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>-=A.<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>;<span class="keywordflow">return</span> *<span class="keyword">this</span>;}; 
    154 <a name="l00177"></a><a class="code" href="classfsqmat.html#af800e7b2146da5e60897255dde80059">00177</a>                 <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>&amp; <a class="code" href="classfsqmat.html#af800e7b2146da5e60897255dde80059" title="multiply by a scalar">operator *= </a>( <span class="keywordtype">double</span> x ) {<a class="code" href="classfsqmat.html#a7a1fcb9aae19d1e4daddfc9c22ce453" title="Full matrix on which the operations are performed.">M</a>*=x;<span class="keywordflow">return</span> *<span class="keyword">this</span>;}; 
    155 <a name="l00178"></a>00178 <span class="comment">//              fsqmat&amp; operator = ( const fsqmat &amp;A) {M=A.M; return *this;};</span> 
    156 <a name="l00180"></a>00180 <span class="comment"></span>                <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classfsqmat.html#e06aba54d61e807b41bd68b5ee6ac22f" title="print full matrix">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;sq ); 
    157 <a name="l00181"></a>00181  
    158 <a name="l00182"></a>00182 }; 
    159 <a name="l00183"></a>00183  
    160 <a name="l00189"></a><a class="code" href="classldmat.html">00189</a> <span class="keyword">class </span><a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>: <a class="code" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a> 
    161 <a name="l00190"></a>00190 { 
    162 <a name="l00191"></a>00191         <span class="keyword">public</span>: 
    163 <a name="l00193"></a>00193                 <a class="code" href="classldmat.html#a12dda6f529580b0377cc45226b43303" title="Default constructor.">ldmat</a> ( <span class="keyword">const</span> mat &amp;<a class="code" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea" title="Lower-triangular matrix .">L</a>, <span class="keyword">const</span> vec &amp;<a class="code" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e" title="Positive vector .">D</a> ); 
    164 <a name="l00195"></a>00195                 <a class="code" href="classldmat.html#a12dda6f529580b0377cc45226b43303" title="Default constructor.">ldmat</a> (<span class="keyword">const</span> mat &amp;V ); 
    165 <a name="l00197"></a><a class="code" href="classldmat.html#8e88c818f9605bc726e52c4136c71cc5">00197</a>                 <a class="code" href="classldmat.html#8e88c818f9605bc726e52c4136c71cc5" title="Construct by restructuring of V0 accordint to permutation vector perm.">ldmat</a> (<span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;V0, <span class="keyword">const</span> ivec &amp;perm):<a class="code" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form...">sqmat</a>(V0.<a class="code" href="group__math.html#g96dfb21865db4f5bd36fa70f9b0b1163" title="access function">rows</a>()){     <a class="code" href="classldmat.html#f291faa073e7bc8dfafc7ae93daa2506" title="Transforms general  into pure .">ldform</a>(V0.<a class="code" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea" title="Lower-triangular matrix .">L</a>.get_cols(perm), V0.<a class="code" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e" title="Positive vector .">D</a>);}; 
    166 <a name="l00199"></a>00199                 <a class="code" href="classldmat.html#a12dda6f529580b0377cc45226b43303" title="Default constructor.">ldmat</a> ( vec D0 ); 
    167 <a name="l00201"></a>00201                 <a class="code" href="classldmat.html#a12dda6f529580b0377cc45226b43303" title="Default constructor.">ldmat</a> (); 
    168 <a name="l00203"></a>00203                 <a class="code" href="classldmat.html#a12dda6f529580b0377cc45226b43303" title="Default constructor.">ldmat</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> dim0); 
    169 <a name="l00204"></a>00204                  
    170 <a name="l00206"></a><a class="code" href="classldmat.html#1e2734c0164ce5233c4d709679555138">00206</a>                 <span class="keyword">virtual</span> <a class="code" href="classldmat.html#1e2734c0164ce5233c4d709679555138" title="Destructor for future use;.">~ldmat</a>(){}; 
    171 <a name="l00207"></a>00207  
    172 <a name="l00208"></a>00208                 <span class="comment">// Reimplementation of compulsory operatios</span> 
    173 <a name="l00209"></a>00209  
    174 <a name="l00210"></a>00210                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#0f0f6e083e6d947cf58097ffce3ccd1a">opupdt</a> ( <span class="keyword">const</span> vec &amp;v, <span class="keywordtype">double</span> w ); 
    175 <a name="l00211"></a>00211                 mat <a class="code" href="classldmat.html#2c1ebc071de4bafbba55b80afd8a7e8e" title="Conversion to full matrix.">to_mat</a>() <span class="keyword">const</span>; 
    176 <a name="l00212"></a>00212                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#e967b9425007f0cb6cd59b845f9756d8" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C); 
    177 <a name="l00213"></a>00213                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#4fd155f38eb6dd5af4bdf9c98a7999a9" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C); 
    178 <a name="l00215"></a>00215                 <span class="keywordtype">void</span> <span class="keyword">add</span> ( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ld2, <span class="keywordtype">double</span> w=1.0 ); 
    179 <a name="l00216"></a>00216                 <span class="keywordtype">double</span> <a class="code" href="classldmat.html#2b42750ba4962d439aa52a77ae12949b" title="Logarithm of a determinant.">logdet</a>() <span class="keyword">const</span>; 
    180 <a name="l00217"></a>00217                 <span class="keywordtype">double</span> <a class="code" href="classldmat.html#d64f331b781903e913cb2ee836886f3f" title="Evaluates quadratic form ;.">qform</a> (<span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span>; 
    181 <a name="l00218"></a>00218                 <span class="keywordtype">double</span> <a class="code" href="classldmat.html#d876c5f83e02b3e809b35c9de5068f14" title="Evaluates quadratic form ;.">invqform</a> (<span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span>; 
    182 <a name="l00219"></a>00219                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#4d6e401de9607332305c27e67972a07a" title="Clearing matrix so that it corresponds to zeros.">clear</a>(); 
    183 <a name="l00220"></a>00220                 <span class="keywordtype">int</span> <a class="code" href="group__math.html#g0fceb6b5b637cec89bb0a3d2e6be1306" title="access function">cols</a>() <span class="keyword">const</span>; 
    184 <a name="l00221"></a>00221                 <span class="keywordtype">int</span> <a class="code" href="group__math.html#g96dfb21865db4f5bd36fa70f9b0b1163" title="access function">rows</a>() <span class="keyword">const</span>; 
    185 <a name="l00222"></a>00222                 vec <a class="code" href="classldmat.html#fc380626ced6f9244fb58c5f0231174d" title="Multiplies square root of  by vector .">sqrt_mult</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span>; 
    186 <a name="l00223"></a>00223  
    187 <a name="l00224"></a>00224                  
    188 <a name="l00228"></a>00228                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classldmat.html#2c160cb123c1102face7a50ec566a031" title="Matrix inversion preserving the chosen form.">inv</a> ( <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;Inv ) <span class="keyword">const</span>; 
    189 <a name="l00229"></a>00229  
    190 <a name="l00234"></a>00234                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#e967b9425007f0cb6cd59b845f9756d8" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;U) <span class="keyword">const</span>; 
    191 <a name="l00235"></a>00235  
    192 <a name="l00240"></a>00240                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#4fd155f38eb6dd5af4bdf9c98a7999a9" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;U) <span class="keyword">const</span>; 
    193 <a name="l00241"></a>00241  
     143<a name="l00150"></a><a class="code" href="classbdm_1_1fsqmat.html#26d4037b787aa9cd63742393e6bd334f">00150</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1fsqmat.html#26d4037b787aa9cd63742393e6bd334f" title="Destructor for future use;.">~fsqmat</a>() {}; 
     144<a name="l00151"></a>00151  
     145<a name="l00152"></a>00152  
     146<a name="l00158"></a>00158         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#d17495888ab35e09ebb9b4e789f586d5" title="Matrix inversion preserving the chosen form.">inv</a> ( <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;Inv ) <span class="keyword">const</span>; 
     147<a name="l00159"></a>00159  
     148<a name="l00160"></a><a class="code" href="classbdm_1_1fsqmat.html#15de11fa1e280d4caa7cb010711881a0">00160</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1fsqmat.html#15de11fa1e280d4caa7cb010711881a0" title="Logarithm of a determinant.">logdet</a>()<span class="keyword"> const </span>{ 
     149<a name="l00161"></a>00161                 <span class="keywordflow">return</span> log ( det ( <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> ) ); 
     150<a name="l00162"></a>00162         }; 
     151<a name="l00163"></a><a class="code" href="classbdm_1_1fsqmat.html#766faafcf138610840a6975f8a28d0b6">00163</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1fsqmat.html#766faafcf138610840a6975f8a28d0b6" title="Evaluates quadratic form ;.">qform</a> ( <span class="keyword">const</span>  vec &amp;v )<span class="keyword"> const </span>{ 
     152<a name="l00164"></a>00164                 <span class="keywordflow">return</span> ( v* ( <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a>*v ) ); 
     153<a name="l00165"></a>00165         }; 
     154<a name="l00166"></a><a class="code" href="classbdm_1_1fsqmat.html#967cbb3a58a0a6f7bd974f2c6ff5d520">00166</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1fsqmat.html#967cbb3a58a0a6f7bd974f2c6ff5d520" title="Evaluates quadratic form ;.">invqform</a> ( <span class="keyword">const</span>  vec &amp;v )<span class="keyword"> const </span>{ 
     155<a name="l00167"></a>00167                 <span class="keywordflow">return</span> ( v* ( itpp::inv ( <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> ) *v ) ); 
     156<a name="l00168"></a>00168         }; 
     157<a name="l00169"></a><a class="code" href="classbdm_1_1fsqmat.html#ab240f84ea1685bc95df0446f948abfd">00169</a>         vec <a class="code" href="classbdm_1_1fsqmat.html#ab240f84ea1685bc95df0446f948abfd" title="Multiplies square root of  by vector .">sqrt_mult</a> ( <span class="keyword">const</span> vec &amp;v )<span class="keyword"> const </span>{ 
     158<a name="l00170"></a>00170                 mat Ch = chol ( <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> ); 
     159<a name="l00171"></a>00171                 <span class="keywordflow">return</span> Ch*v; 
     160<a name="l00172"></a>00172         }; 
     161<a name="l00173"></a>00173  
     162<a name="l00175"></a><a class="code" href="classbdm_1_1fsqmat.html#1a01433460718f7b8a9fa6ba9a911b8a">00175</a>         <span class="keywordtype">void</span> <span class="keyword">add</span> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;fsq2, <span class="keywordtype">double</span> w = 1.0 ) { 
     163<a name="l00176"></a>00176                 <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> += fsq2.M; 
     164<a name="l00177"></a>00177         }; 
     165<a name="l00178"></a>00178  
     166<a name="l00180"></a><a class="code" href="classbdm_1_1fsqmat.html#d36cb40feaa7079d8687d60bd33e50a5">00180</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#d36cb40feaa7079d8687d60bd33e50a5" title="Access functions.">setD</a> ( <span class="keyword">const</span> vec &amp;nD ) { 
     167<a name="l00181"></a>00181                 <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> = diag ( nD ); 
     168<a name="l00182"></a>00182         } 
     169<a name="l00184"></a><a class="code" href="classbdm_1_1fsqmat.html#d94e0156c4d15a756b23fa70ab181904">00184</a>         vec <a class="code" href="classbdm_1_1fsqmat.html#d94e0156c4d15a756b23fa70ab181904" title="Access functions.">getD</a> () { 
     170<a name="l00185"></a>00185                 <span class="keywordflow">return</span> diag ( <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> ); 
     171<a name="l00186"></a>00186         } 
     172<a name="l00188"></a><a class="code" href="classbdm_1_1fsqmat.html#19f6f73679a09315babba64a95d89085">00188</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fsqmat.html#19f6f73679a09315babba64a95d89085" title="Access functions.">setD</a> ( <span class="keyword">const</span> vec &amp;nD, <span class="keywordtype">int</span> i ) { 
     173<a name="l00189"></a>00189                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> j = i; j &lt; nD.length(); j++ ) { 
     174<a name="l00190"></a>00190                         <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> ( j, j ) = nD ( j - i );    <span class="comment">//Fixme can be more general</span> 
     175<a name="l00191"></a>00191                 } 
     176<a name="l00192"></a>00192         } 
     177<a name="l00193"></a>00193  
     178<a name="l00194"></a>00194  
     179<a name="l00196"></a><a class="code" href="classbdm_1_1fsqmat.html#83db17577372a459433cc56aef712583">00196</a>         <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>&amp; <a class="code" href="classbdm_1_1fsqmat.html#83db17577372a459433cc56aef712583" title="add another fsqmat matrix">operator += </a>( <span class="keyword">const</span> <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;A ) { 
     180<a name="l00197"></a>00197                 <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> += A.<a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a>; 
     181<a name="l00198"></a>00198                 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 
     182<a name="l00199"></a>00199         }; 
     183<a name="l00201"></a><a class="code" href="classbdm_1_1fsqmat.html#019ee2145f7ef263bfb9a72e8e0532d9">00201</a>         <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>&amp; <a class="code" href="classbdm_1_1fsqmat.html#019ee2145f7ef263bfb9a72e8e0532d9" title="subtrack another fsqmat matrix">operator -= </a>( <span class="keyword">const</span> <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;A ) { 
     184<a name="l00202"></a>00202                 <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> -= A.<a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a>; 
     185<a name="l00203"></a>00203                 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 
     186<a name="l00204"></a>00204         }; 
     187<a name="l00206"></a><a class="code" href="classbdm_1_1fsqmat.html#093d62d05f04b97d91084ed97194560b">00206</a>         <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a>&amp; <a class="code" href="classbdm_1_1fsqmat.html#093d62d05f04b97d91084ed97194560b" title="multiply by a scalar">operator *= </a>( <span class="keywordtype">double</span> x ) { 
     188<a name="l00207"></a>00207                 <a class="code" href="classbdm_1_1fsqmat.html#ae9e9d807cd320ec265df81022eb9f03" title="Full matrix on which the operations are performed.">M</a> *= x; 
     189<a name="l00208"></a>00208                 <span class="keywordflow">return</span> *<span class="keyword">this</span>; 
     190<a name="l00209"></a>00209         }; 
     191<a name="l00210"></a>00210 <span class="comment">//              fsqmat&amp; operator = ( const fsqmat &amp;A) {M=A.M; return *this;};</span> 
     192<a name="l00212"></a>00212 <span class="comment"></span>        <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classbdm_1_1fsqmat.html#e06aba54d61e807b41bd68b5ee6ac22f" title="print full matrix">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classbdm_1_1fsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</a> &amp;sq ); 
     193<a name="l00213"></a>00213  
     194<a name="l00214"></a>00214 }; 
     195<a name="l00215"></a>00215  
     196<a name="l00221"></a><a class="code" href="classbdm_1_1ldmat.html">00221</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> { 
     197<a name="l00222"></a>00222 <span class="keyword">public</span>: 
     198<a name="l00224"></a>00224         <a class="code" href="classbdm_1_1ldmat.html#30235afa1e80e709d7d7da380201a990" title="Default constructor.">ldmat</a> ( <span class="keyword">const</span> mat &amp;<a class="code" href="classbdm_1_1ldmat.html#2488cf5a8f056b2566e2565d1ce9ec57" title="Lower-triangular matrix .">L</a>, <span class="keyword">const</span> vec &amp;<a class="code" href="classbdm_1_1ldmat.html#03b89dcb9a5241a237a07102f932638f" title="Positive vector .">D</a> ); 
     199<a name="l00226"></a>00226         <a class="code" href="classbdm_1_1ldmat.html#30235afa1e80e709d7d7da380201a990" title="Default constructor.">ldmat</a> ( <span class="keyword">const</span> mat &amp;V ); 
     200<a name="l00228"></a><a class="code" href="classbdm_1_1ldmat.html#984df3535e93e777dc5f9897aa682176">00228</a>         <a class="code" href="classbdm_1_1ldmat.html#984df3535e93e777dc5f9897aa682176" title="Construct by restructuring of V0 accordint to permutation vector perm.">ldmat</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;V0, <span class="keyword">const</span> ivec &amp;perm ) : <a class="code" href="classbdm_1_1sqmat.html" title="Abstract class for representation of double symmetric matrices in square-root form...">sqmat</a> ( V0.<a class="code" href="classbdm_1_1sqmat.html#73e639221343dcce76c3305524d67590" title="Reimplementing common functions of mat: rows().">rows</a>() ) { 
     201<a name="l00229"></a>00229                 <a class="code" href="classbdm_1_1ldmat.html#f95718893e86bff149080116736ab566" title="Transforms general  into pure .">ldform</a> ( V0.<a class="code" href="classbdm_1_1ldmat.html#2488cf5a8f056b2566e2565d1ce9ec57" title="Lower-triangular matrix .">L</a>.get_cols ( perm ), V0.<a class="code" href="classbdm_1_1ldmat.html#03b89dcb9a5241a237a07102f932638f" title="Positive vector .">D</a> ); 
     202<a name="l00230"></a>00230         }; 
     203<a name="l00232"></a>00232         <a class="code" href="classbdm_1_1ldmat.html#30235afa1e80e709d7d7da380201a990" title="Default constructor.">ldmat</a> ( vec D0 ); 
     204<a name="l00234"></a>00234         <a class="code" href="classbdm_1_1ldmat.html#30235afa1e80e709d7d7da380201a990" title="Default constructor.">ldmat</a> (); 
     205<a name="l00236"></a>00236         <a class="code" href="classbdm_1_1ldmat.html#30235afa1e80e709d7d7da380201a990" title="Default constructor.">ldmat</a> ( <span class="keyword">const</span> <span class="keywordtype">int</span> dim0 ); 
     206<a name="l00237"></a>00237  
     207<a name="l00239"></a><a class="code" href="classbdm_1_1ldmat.html#deb3ea5e22f1c12fe06a56841d1c5ccc">00239</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1ldmat.html#deb3ea5e22f1c12fe06a56841d1c5ccc" title="Destructor for future use;.">~ldmat</a>() {}; 
     208<a name="l00240"></a>00240  
     209<a name="l00241"></a>00241         <span class="comment">// Reimplementation of compulsory operatios</span> 
    194210<a name="l00242"></a>00242  
    195 <a name="l00249"></a>00249                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#f291faa073e7bc8dfafc7ae93daa2506" title="Transforms general  into pure .">ldform</a> (<span class="keyword">const</span> mat &amp;A,<span class="keyword">const</span> vec &amp;D0 ); 
    196 <a name="l00250"></a>00250  
    197 <a name="l00252"></a><a class="code" href="classldmat.html#0884a613b94fde61bfc84288e73ce57f">00252</a>                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#0884a613b94fde61bfc84288e73ce57f" title="Access functions.">setD</a> (<span class="keyword">const</span> vec &amp;nD){D=nD;} 
    198 <a name="l00254"></a><a class="code" href="classldmat.html#7619922b4de18830ce5351c6b5667e60">00254</a>                 <span class="keywordtype">void</span> <a class="code" href="classldmat.html#7619922b4de18830ce5351c6b5667e60" title="Access functions.">setD</a> (<span class="keyword">const</span> vec &amp;nD, <span class="keywordtype">int</span> i){D.replace_mid(i,nD);} <span class="comment">//Fixme can be more general</span> 
    199 <a name="l00256"></a><a class="code" href="classldmat.html#32ff66296627ff5341d7c0b973249614">00256</a> <span class="comment"></span>                <span class="keywordtype">void</span> <a class="code" href="classldmat.html#32ff66296627ff5341d7c0b973249614" title="Access functions.">setL</a> (<span class="keyword">const</span> vec &amp;nL){L=nL;} 
    200 <a name="l00257"></a>00257  
    201 <a name="l00259"></a><a class="code" href="classldmat.html#282c879f50aa9ef934e7f46d86881582">00259</a>                 <span class="keyword">const</span> vec&amp; <a class="code" href="classldmat.html#282c879f50aa9ef934e7f46d86881582" title="Access functions.">_D</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> D;} 
    202 <a name="l00261"></a><a class="code" href="classldmat.html#5f44f100248c6627314afaa653b9e5bd">00261</a>                 <span class="keyword">const</span> mat&amp; <a class="code" href="classldmat.html#5f44f100248c6627314afaa653b9e5bd" title="Access functions.">_L</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> L;} 
    203 <a name="l00262"></a>00262  
    204 <a name="l00264"></a>00264                 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="group__math.html#gca445ee152a56043af946ea095b2d8f8" title="add another ldmat matrix">operator += </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ldA ); 
    205 <a name="l00266"></a>00266                 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="group__math.html#ge3f4d2d85ab1ba384c852329aa31d0fb" title="subtract another ldmat matrix">operator -= </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ldA ); 
    206 <a name="l00268"></a>00268                 <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="classldmat.html#875b7e6dcf73ae7001329099019fdb1d" title="multiply by a scalar">operator *= </a>( <span class="keywordtype">double</span> x ); 
    207 <a name="l00269"></a>00269  
    208 <a name="l00271"></a>00271                 <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classldmat.html#eaaa0baa6026b84cfcbced41c84599d1" title="print both L and D ">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;sq ); 
     211<a name="l00243"></a>00243         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#c9dc3f1f86d36ec7eedb8746eb2c3b5c">opupdt</a> ( <span class="keyword">const</span> vec &amp;v, <span class="keywordtype">double</span> w ); 
     212<a name="l00244"></a>00244         mat <a class="code" href="classbdm_1_1ldmat.html#387f6acb29086e93828331a30a638ae4" title="Conversion to full matrix.">to_mat</a>() <span class="keyword">const</span>; 
     213<a name="l00245"></a>00245         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#7a813158c36347deccf50a08feee24a8" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C ); 
     214<a name="l00246"></a>00246         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#591ae54f5fce50e7160025eeab44888f" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C ); 
     215<a name="l00248"></a>00248         <span class="keywordtype">void</span> <span class="keyword">add</span> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ld2, <span class="keywordtype">double</span> w = 1.0 ); 
     216<a name="l00249"></a>00249         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1ldmat.html#0913623ee335d78f96bb474f62616375" title="Logarithm of a determinant.">logdet</a>() <span class="keyword">const</span>; 
     217<a name="l00250"></a>00250         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1ldmat.html#5725cb504d3dd68713ac232c18526c87" title="Evaluates quadratic form ;.">qform</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span>; 
     218<a name="l00251"></a>00251         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1ldmat.html#f743de194aadb8515cf18226fadf365f" title="Evaluates quadratic form ;.">invqform</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span>; 
     219<a name="l00252"></a>00252         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#913a4746f16e4c5e130f63bd3f31829a" title="Clearing matrix so that it corresponds to zeros.">clear</a>(); 
     220<a name="l00253"></a>00253         vec <a class="code" href="classbdm_1_1ldmat.html#2c670269c0ee397eb49ba7b0712e16a5" title="Multiplies square root of  by vector .">sqrt_mult</a> ( <span class="keyword">const</span> vec &amp;v ) <span class="keyword">const</span>; 
     221<a name="l00254"></a>00254  
     222<a name="l00255"></a>00255  
     223<a name="l00259"></a>00259         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#e5940e396d822b9e93a43ac0924d3823" title="Matrix inversion preserving the chosen form.">inv</a> ( <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;Inv ) <span class="keyword">const</span>; 
     224<a name="l00260"></a>00260  
     225<a name="l00265"></a>00265         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#7a813158c36347deccf50a08feee24a8" title="Inplace symmetric multiplication by a SQUARE matrix , i.e. .">mult_sym</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;U ) <span class="keyword">const</span>; 
     226<a name="l00266"></a>00266  
     227<a name="l00271"></a>00271         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#591ae54f5fce50e7160025eeab44888f" title="Inplace symmetric multiplication by a SQUARE transpose of matrix , i.e. .">mult_sym_t</a> ( <span class="keyword">const</span> mat &amp;C, <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;U ) <span class="keyword">const</span>; 
    209228<a name="l00272"></a>00272  
    210 <a name="l00273"></a>00273         <span class="keyword">protected</span>: 
    211 <a name="l00275"></a><a class="code" href="classldmat.html#4cce04824539c4a8d062d9a36d6e014e">00275</a>                 vec D; 
    212 <a name="l00277"></a><a class="code" href="classldmat.html#f74a64b99fe58a75ebd37bb679e121ea">00277</a>                 mat L; 
    213 <a name="l00278"></a>00278  
    214 <a name="l00279"></a>00279 }; 
    215 <a name="l00280"></a>00280  
    216 <a name="l00283"></a><a class="code" href="group__math.html#gca445ee152a56043af946ea095b2d8f8">00283</a> <span class="keyword">inline</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="group__math.html#gca445ee152a56043af946ea095b2d8f8" title="add another ldmat matrix">ldmat::operator += </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ldA )  {this-&gt;<span class="keyword">add</span> ( ldA );<span class="keywordflow">return</span> *<span class="keyword">this</span>;} 
    217 <a name="l00285"></a><a class="code" href="group__math.html#ge3f4d2d85ab1ba384c852329aa31d0fb">00285</a> <span class="keyword">inline</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="group__math.html#ge3f4d2d85ab1ba384c852329aa31d0fb" title="subtract another ldmat matrix">ldmat::operator -= </a>( <span class="keyword">const</span> <a class="code" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ldA )  {this-&gt;<span class="keyword">add</span> ( ldA,-1.0 );<span class="keywordflow">return</span> *<span class="keyword">this</span>;} 
    218 <a name="l00287"></a><a class="code" href="group__math.html#g0fceb6b5b637cec89bb0a3d2e6be1306">00287</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="group__math.html#g0fceb6b5b637cec89bb0a3d2e6be1306" title="access function">ldmat::cols</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;} 
    219 <a name="l00289"></a><a class="code" href="group__math.html#g96dfb21865db4f5bd36fa70f9b0b1163">00289</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="group__math.html#g96dfb21865db4f5bd36fa70f9b0b1163" title="access function">ldmat::rows</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classsqmat.html#0abed904bdc0882373ba9adba919689d" title="dimension of the square matrix">dim</a>;} 
    220 <a name="l00290"></a>00290  
    221 <a name="l00293"></a>00293 <span class="preprocessor">#endif // DC_H</span> 
     229<a name="l00273"></a>00273  
     230<a name="l00280"></a>00280         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#f95718893e86bff149080116736ab566" title="Transforms general  into pure .">ldform</a> ( <span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;D0 ); 
     231<a name="l00281"></a>00281  
     232<a name="l00283"></a><a class="code" href="classbdm_1_1ldmat.html#72e61ad4e0653f4fc38e7d60d3cf1d4e">00283</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#72e61ad4e0653f4fc38e7d60d3cf1d4e" title="Access functions.">setD</a> ( <span class="keyword">const</span> vec &amp;nD ) { 
     233<a name="l00284"></a>00284                 D = nD; 
     234<a name="l00285"></a>00285         } 
     235<a name="l00287"></a><a class="code" href="classbdm_1_1ldmat.html#c4aa9180695e22fec17c714c5494a8b1">00287</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#c4aa9180695e22fec17c714c5494a8b1" title="Access functions.">setD</a> ( <span class="keyword">const</span> vec &amp;nD, <span class="keywordtype">int</span> i ) { 
     236<a name="l00288"></a>00288                 D.replace_mid ( i, nD );    <span class="comment">//Fixme can be more general</span> 
     237<a name="l00289"></a>00289         } 
     238<a name="l00291"></a><a class="code" href="classbdm_1_1ldmat.html#f8d6bb6f315c25b8f8af72e4e62230ee">00291</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ldmat.html#f8d6bb6f315c25b8f8af72e4e62230ee" title="Access functions.">setL</a> ( <span class="keyword">const</span> vec &amp;nL ) { 
     239<a name="l00292"></a>00292                 L = nL; 
     240<a name="l00293"></a>00293         } 
     241<a name="l00294"></a>00294  
     242<a name="l00296"></a><a class="code" href="classbdm_1_1ldmat.html#0cc4632b40e8b61945bd463913d08b69">00296</a>         <span class="keyword">const</span> vec&amp; <a class="code" href="classbdm_1_1ldmat.html#0cc4632b40e8b61945bd463913d08b69" title="Access functions.">_D</a>()<span class="keyword"> const </span>{ 
     243<a name="l00297"></a>00297                 <span class="keywordflow">return</span> D; 
     244<a name="l00298"></a>00298         } 
     245<a name="l00300"></a><a class="code" href="classbdm_1_1ldmat.html#75c80134f0602ec1face282ec0f05b96">00300</a>         <span class="keyword">const</span> mat&amp; <a class="code" href="classbdm_1_1ldmat.html#75c80134f0602ec1face282ec0f05b96" title="Access functions.">_L</a>()<span class="keyword"> const </span>{ 
     246<a name="l00301"></a>00301                 <span class="keywordflow">return</span> L; 
     247<a name="l00302"></a>00302         } 
     248<a name="l00303"></a>00303  
     249<a name="l00305"></a>00305         <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="classbdm_1_1ldmat.html#6e1d28681e7e7e6b570a14a9a370821a" title="add another ldmat matrix">operator += </a>( <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ldA ); 
     250<a name="l00307"></a>00307         <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="classbdm_1_1ldmat.html#db2f7a02b4686ea1bf7013284b40d954" title="subtract another ldmat matrix">operator -= </a>( <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;ldA ); 
     251<a name="l00309"></a>00309         <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="classbdm_1_1ldmat.html#d387ee8c6e5514244a00e4e8ff1e533c" title="multiply by a scalar">operator *= </a>( <span class="keywordtype">double</span> x ); 
     252<a name="l00310"></a>00310  
     253<a name="l00312"></a>00312         <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classbdm_1_1ldmat.html#eaaa0baa6026b84cfcbced41c84599d1" title="print both L and D ">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp;sq ); 
     254<a name="l00313"></a>00313  
     255<a name="l00314"></a>00314 <span class="keyword">protected</span>: 
     256<a name="l00316"></a><a class="code" href="classbdm_1_1ldmat.html#03b89dcb9a5241a237a07102f932638f">00316</a>         vec D; 
     257<a name="l00318"></a><a class="code" href="classbdm_1_1ldmat.html#2488cf5a8f056b2566e2565d1ce9ec57">00318</a>         mat L; 
     258<a name="l00319"></a>00319  
     259<a name="l00320"></a>00320 }; 
     260<a name="l00321"></a>00321  
     261<a name="l00324"></a><a class="code" href="classbdm_1_1ldmat.html#6e1d28681e7e7e6b570a14a9a370821a">00324</a> <span class="keyword">inline</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="classbdm_1_1ldmat.html#6e1d28681e7e7e6b570a14a9a370821a" title="add another ldmat matrix">ldmat::operator += </a>( <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp; ldA )  { 
     262<a name="l00325"></a>00325         this-&gt;<span class="keyword">add</span> ( ldA ); 
     263<a name="l00326"></a>00326         <span class="keywordflow">return</span> *<span class="keyword">this</span>; 
     264<a name="l00327"></a>00327 } 
     265<a name="l00329"></a><a class="code" href="classbdm_1_1ldmat.html#db2f7a02b4686ea1bf7013284b40d954">00329</a> <span class="keyword">inline</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a>&amp; <a class="code" href="classbdm_1_1ldmat.html#db2f7a02b4686ea1bf7013284b40d954" title="subtract another ldmat matrix">ldmat::operator -= </a>( <span class="keyword">const</span> <a class="code" href="classbdm_1_1ldmat.html" title="Matrix stored in LD form, (commonly known as UD).">ldmat</a> &amp; ldA )  { 
     266<a name="l00330"></a>00330         this-&gt;<span class="keyword">add</span> ( ldA, -1.0 ); 
     267<a name="l00331"></a>00331         <span class="keywordflow">return</span> *<span class="keyword">this</span>; 
     268<a name="l00332"></a>00332 } 
     269<a name="l00333"></a>00333  
     270<a name="l00334"></a>00334 } 
     271<a name="l00335"></a>00335  
     272<a name="l00336"></a>00336 <span class="preprocessor">#endif // DC_H</span> 
    222273</pre></div></div> 
    223 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:56 2009 for mixpp by&nbsp; 
     274<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:18 2009 for mixpp by&nbsp; 
    224275<a href="http://www.doxygen.org/index.html"> 
    225276<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>