| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 
|---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | 
|---|
| 3 | <title>mixpp: Determinant</title> | 
|---|
| 4 | <link href="tabs.css" rel="stylesheet" type="text/css"> | 
|---|
| 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> | 
|---|
| 6 | </head><body> | 
|---|
| 7 | <!-- Generated by Doxygen 1.5.8 --> | 
|---|
| 8 | <script type="text/javascript"> | 
|---|
| 9 | <!-- | 
|---|
| 10 | function changeDisplayState (e){ | 
|---|
| 11 | var num=this.id.replace(/[^[0-9]/g,''); | 
|---|
| 12 | var button=this.firstChild; | 
|---|
| 13 | var sectionDiv=document.getElementById('dynsection'+num); | 
|---|
| 14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ | 
|---|
| 15 | sectionDiv.style.display='block'; | 
|---|
| 16 | button.src='open.gif'; | 
|---|
| 17 | }else{ | 
|---|
| 18 | sectionDiv.style.display='none'; | 
|---|
| 19 | button.src='closed.gif'; | 
|---|
| 20 | } | 
|---|
| 21 | } | 
|---|
| 22 | function initDynSections(){ | 
|---|
| 23 | var divs=document.getElementsByTagName('div'); | 
|---|
| 24 | var sectionCounter=1; | 
|---|
| 25 | for(var i=0;i<divs.length-1;i++){ | 
|---|
| 26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ | 
|---|
| 27 | var header=divs[i]; | 
|---|
| 28 | var section=divs[i+1]; | 
|---|
| 29 | var button=header.firstChild; | 
|---|
| 30 | if (button!='IMG'){ | 
|---|
| 31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); | 
|---|
| 32 | button=document.createElement('img'); | 
|---|
| 33 | divs[i].insertBefore(button,divs[i].firstChild); | 
|---|
| 34 | } | 
|---|
| 35 | header.style.cursor='pointer'; | 
|---|
| 36 | header.onclick=changeDisplayState; | 
|---|
| 37 | header.id='dynheader'+sectionCounter; | 
|---|
| 38 | button.src='closed.gif'; | 
|---|
| 39 | section.id='dynsection'+sectionCounter; | 
|---|
| 40 | section.style.display='none'; | 
|---|
| 41 | section.style.marginLeft='14px'; | 
|---|
| 42 | sectionCounter++; | 
|---|
| 43 | } | 
|---|
| 44 | } | 
|---|
| 45 | } | 
|---|
| 46 | window.onload = initDynSections; | 
|---|
| 47 | --> | 
|---|
| 48 | </script> | 
|---|
| 49 | <div class="navigation" id="top"> | 
|---|
| 50 | <div class="tabs"> | 
|---|
| 51 | <ul> | 
|---|
| 52 | <li><a href="main.html"><span>Main Page</span></a></li> | 
|---|
| 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> | 
|---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> | 
|---|
| 55 | <li><a href="annotated.html"><span>Classes</span></a></li> | 
|---|
| 56 | <li><a href="files.html"><span>Files</span></a></li> | 
|---|
| 57 | </ul> | 
|---|
| 58 | </div> | 
|---|
| 59 | </div> | 
|---|
| 60 | <div class="contents"> | 
|---|
| 61 | <h1>Determinant<br> | 
|---|
| 62 | <small> | 
|---|
| 63 | [<a class="el" href="group__algebra.html">Linear Algebra</a>]</small> | 
|---|
| 64 | </h1><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
| 65 | <tr><td></td></tr> | 
|---|
| 66 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> | 
|---|
| 67 | <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__determinant.html#g922f8248470a73dfb9f002a59de9b335">itpp::det</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &X)</td></tr> | 
|---|
| 68 |  | 
|---|
| 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Determinant of real square matrix.<p> | 
|---|
| 70 | Calculate determinant of the real matrix <img class="formulaInl" alt="$\mathbf{X}$" src="form_125.png">.  <a href="#g922f8248470a73dfb9f002a59de9b335"></a><br></td></tr> | 
|---|
| 71 | <tr><td class="memItemLeft" nowrap align="right" valign="top">std::complex< double > </td><td class="memItemRight" valign="bottom"><a class="el" href="group__determinant.html#gd9ded34e98aba6036329f53e8abf51a8">itpp::det</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &X)</td></tr> | 
|---|
| 72 |  | 
|---|
| 73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Determinant of complex square matrix.<p> | 
|---|
| 74 | Calculate determinant of the complex matrix <img class="formulaInl" alt="$\mathbf{X}$" src="form_125.png">.  <a href="#gd9ded34e98aba6036329f53e8abf51a8"></a><br></td></tr> | 
|---|
| 75 | </table> | 
|---|
| 76 | <hr><h2>Function Documentation</h2> | 
|---|
| 77 | <a class="anchor" name="gd9ded34e98aba6036329f53e8abf51a8"></a><!-- doxytag: member="itpp::det" ref="gd9ded34e98aba6036329f53e8abf51a8" args="(const cmat &X)" --> | 
|---|
| 78 | <div class="memitem"> | 
|---|
| 79 | <div class="memproto"> | 
|---|
| 80 | <table class="memname"> | 
|---|
| 81 | <tr> | 
|---|
| 82 | <td class="memname">std::complex< double > itpp::det           </td> | 
|---|
| 83 | <td>(</td> | 
|---|
| 84 | <td class="paramtype">const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> & </td> | 
|---|
| 85 | <td class="paramname"> <em>X</em>          </td> | 
|---|
| 86 | <td> ) </td> | 
|---|
| 87 | <td></td> | 
|---|
| 88 | </tr> | 
|---|
| 89 | </table> | 
|---|
| 90 | </div> | 
|---|
| 91 | <div class="memdoc"> | 
|---|
| 92 |  | 
|---|
| 93 | <p> | 
|---|
| 94 | Determinant of complex square matrix.<p> | 
|---|
| 95 | Calculate determinant of the complex matrix <img class="formulaInl" alt="$\mathbf{X}$" src="form_125.png">. | 
|---|
| 96 | <p> | 
|---|
| 97 | Uses LU-factorisation. <p class="formulaDsp"> | 
|---|
| 98 | <img class="formulaDsp" alt="\[ \det(\mathbf{X}) = \det(\mathbf{P}^T \mathbf{L}) \det(\mathbf{U}) = \det(\mathbf{P}^T) \prod(\mathrm{diag}(\mathbf{U})) \]" src="form_130.png"> | 
|---|
| 99 | <p> | 
|---|
| 100 | and the determinant of the permuation matrix is <img class="formulaInl" alt="$ \pm 1$" src="form_131.png"> depending on the number of row permutations | 
|---|
| 101 | <p>References <a class="el" href="itassert_8h-source.html#l00107">it_assert_debug</a>, and <a class="el" href="lu_8cpp-source.html#l00123">itpp::lu()</a>.</p> | 
|---|
| 102 |  | 
|---|
| 103 | <p>Referenced by <a class="el" href="libKF_8cpp-source.html#l00087">bdm::EKFfull::bayes()</a>, <a class="el" href="libKF_8cpp-source.html#l00033">bdm::KalmanFull::bayes()</a>, <a class="el" href="ekf__obj_8cpp-source.html#l00010">EKFfixed::bayes()</a>, <a class="el" href="libDC_8h-source.html#l00156">fsqmat::logdet()</a>, and <a class="el" href="mog__generic_8cpp-source.html#l00279">itpp::MOG_generic::setup_covs()</a>.</p> | 
|---|
| 104 |  | 
|---|
| 105 | </div> | 
|---|
| 106 | </div><p> | 
|---|
| 107 | <a class="anchor" name="g922f8248470a73dfb9f002a59de9b335"></a><!-- doxytag: member="itpp::det" ref="g922f8248470a73dfb9f002a59de9b335" args="(const mat &X)" --> | 
|---|
| 108 | <div class="memitem"> | 
|---|
| 109 | <div class="memproto"> | 
|---|
| 110 | <table class="memname"> | 
|---|
| 111 | <tr> | 
|---|
| 112 | <td class="memname">double itpp::det           </td> | 
|---|
| 113 | <td>(</td> | 
|---|
| 114 | <td class="paramtype">const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> & </td> | 
|---|
| 115 | <td class="paramname"> <em>X</em>          </td> | 
|---|
| 116 | <td> ) </td> | 
|---|
| 117 | <td></td> | 
|---|
| 118 | </tr> | 
|---|
| 119 | </table> | 
|---|
| 120 | </div> | 
|---|
| 121 | <div class="memdoc"> | 
|---|
| 122 |  | 
|---|
| 123 | <p> | 
|---|
| 124 | Determinant of real square matrix.<p> | 
|---|
| 125 | Calculate determinant of the real matrix <img class="formulaInl" alt="$\mathbf{X}$" src="form_125.png">. | 
|---|
| 126 | <p> | 
|---|
| 127 | Uses LU-factorisation. <p class="formulaDsp"> | 
|---|
| 128 | <img class="formulaDsp" alt="\[ \det(\mathbf{X}) = \det(\mathbf{P}^T \mathbf{L}) \det(\mathbf{U}) = \det(\mathbf{P}^T) \prod(\mathrm{diag}(\mathbf{U})) \]" src="form_130.png"> | 
|---|
| 129 | <p> | 
|---|
| 130 | and the determinant of the permuation matrix is <img class="formulaInl" alt="$ \pm 1$" src="form_131.png"> depending on the number of row permutations | 
|---|
| 131 | <p>References <a class="el" href="itassert_8h-source.html#l00107">it_assert_debug</a>, and <a class="el" href="lu_8cpp-source.html#l00123">itpp::lu()</a>.</p> | 
|---|
| 132 |  | 
|---|
| 133 | </div> | 
|---|
| 134 | </div><p> | 
|---|
| 135 | </div> | 
|---|
| 136 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:14 2009 for mixpp by  | 
|---|
| 137 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| 138 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> | 
|---|
| 139 | </body> | 
|---|
| 140 | </html> | 
|---|