<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>linbox: BlasPermutation< _UnsignedInt > Class Template Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">linbox</div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespace_lin_box.html">LinBox</a> </li> <li class="navelem"><a class="el" href="class_lin_box_1_1_blas_permutation.html">BlasPermutation</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <div class="title">BlasPermutation< _UnsignedInt > Class Template Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="LinBox::BlasPermutation" --> <p>Lapack-style permutation. <a href="class_lin_box_1_1_blas_permutation.html#details">More...</a></p> <p><code>#include <matrix-permutation.h></code></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">_UnsignedInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#aa30987b55cee0f7e5b4904ae55188825">getSize</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_lin_box_1_1_matrix_permutation.html">MatrixPermutation</a>< _UnsignedInt > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#a2255bc8a7db43842d45cb908746dde34">Convert</a> (<a class="el" href="class_lin_box_1_1_matrix_permutation.html">MatrixPermutation</a>< _UnsignedInt > &P)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <code><a class="el" href="class_lin_box_1_1_blas_permutation.html" title="Lapack-style permutation.">BlasPermutation</a></code> to a <code><a class="el" href="class_lin_box_1_1_matrix_permutation.html" title="Permutation classique.">MatrixPermutation</a></code>. <a href="#a2255bc8a7db43842d45cb908746dde34"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">_UnsignedInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#a0fff1b49e74b83315ec873841b3a46ed">operator[]</a> (const _UnsignedInt i) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><img class="formulaInl" alt="$ M \gets P M$" src="form_64.png"/> <a href="#a0fff1b49e74b83315ec873841b3a46ed"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const _UnsignedInt * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#a593a7496727ce80d336e9931a9003ef9">getPointer</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">col <code>i</code> and col <code>j</code> are swapped <a href="#a593a7496727ce80d336e9931a9003ef9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ba9edee3fd93ac653cee4e428b6e93e"></a><!-- doxytag: member="LinBox::BlasPermutation::Compress" ref="a0ba9edee3fd93ac653cee4e428b6e93e" args="()" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#a0ba9edee3fd93ac653cee4e428b6e93e">Compress</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">compresses <a class="el" href="class_lin_box_1_1_blas_permutation.html" title="Lapack-style permutation.">BlasPermutation</a> to a smaller <code>r_</code>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa878964fff4946cc135175758bb7adfc"></a><!-- doxytag: member="LinBox::BlasPermutation::write" ref="aa878964fff4946cc135175758bb7adfc" args="(std::ostream &o, bool Lapack=true) const " --> std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#aa878964fff4946cc135175758bb7adfc">write</a> (std::ostream &o, bool Lapack=true) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">writes on output stream <code>o</code> <br/></td></tr> <tr><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a634e195b7ad8eebdb4daa838275f7d3b"></a><!-- doxytag: member="LinBox::BlasPermutation::operator<<" ref="a634e195b7ad8eebdb4daa838275f7d3b" args="(std::ostream &o, BlasPerm &P)" --> template<class _Uint > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">std::ostream & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_lin_box_1_1_blas_permutation.html#a634e195b7ad8eebdb4daa838275f7d3b">operator<<</a> (std::ostream &o, <a class="el" href="class_lin_box_1_1_blas_permutation.html">BlasPerm</a> &P)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">writes <code>P</code> on output stream <code>o</code> <br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><h3>template<class _UnsignedInt><br/> class LinBox::BlasPermutation< _UnsignedInt ></h3> <p>Lapack-style permutation. </p> <p>A Lapack permutation is represented with a vector <img class="formulaInl" alt="$[p_1,p_2,\cdots, p_r]$" src="form_61.png"/> such that <img class="formulaInl" alt="$p_i > i$" src="form_62.png"/>. Converting it to a classic representation of a permutation corresponds to taking an identity permutation and then successively permuting <img class="formulaInl" alt="$(i,p_i)$" src="form_63.png"/>. Example : if <code>P=[1,4,4]</code> and <code>V=[1,2,3,4,5]</code>, then <code>P.V=[1,4,2,3,5]</code>. </p> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aa30987b55cee0f7e5b4904ae55188825"></a><!-- doxytag: member="LinBox::BlasPermutation::getSize" ref="aa30987b55cee0f7e5b4904ae55188825" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">_Uint getSize </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p><dl class="warning"><dt><b>Warning:</b></dt><dd>potentially catastrophic </dd></dl> </p> </div> </div> <a class="anchor" id="a2255bc8a7db43842d45cb908746dde34"></a><!-- doxytag: member="LinBox::BlasPermutation::Convert" ref="a2255bc8a7db43842d45cb908746dde34" args="(MatrixPermutation< _UnsignedInt > &P)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_lin_box_1_1_matrix_permutation.html">MatrixPermutation</a>< _Uint > & Convert </td> <td>(</td> <td class="paramtype"><a class="el" href="class_lin_box_1_1_matrix_permutation.html">MatrixPermutation</a>< _Uint > & </td> <td class="paramname"><em>P</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Converts a <code><a class="el" href="class_lin_box_1_1_blas_permutation.html" title="Lapack-style permutation.">BlasPermutation</a></code> to a <code><a class="el" href="class_lin_box_1_1_matrix_permutation.html" title="Permutation classique.">MatrixPermutation</a></code>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">P</td><td><a class="el" href="class_lin_box_1_1_matrix_permutation.html" title="Permutation classique.">MatrixPermutation</a> to be created. Need not be initialized. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a0fff1b49e74b83315ec873841b3a46ed"></a><!-- doxytag: member="LinBox::BlasPermutation::operator[]" ref="a0fff1b49e74b83315ec873841b3a46ed" args="(const _UnsignedInt i) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">_Uint operator[] </td> <td>(</td> <td class="paramtype">const _Uint </td> <td class="paramname"><em>i</em></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p><img class="formulaInl" alt="$ M \gets P M$" src="form_64.png"/> </p> <p><img class="formulaInl" alt="$ M \gets M P$" src="form_65.png"/></p> <p><img class="formulaInl" alt="$ M \gets M P^t$" src="form_66.png"/></p> <p><img class="formulaInl" alt="$ M \gets P^t M$" src="form_67.png"/> </p> </div> </div> <a class="anchor" id="a593a7496727ce80d336e9931a9003ef9"></a><!-- doxytag: member="LinBox::BlasPermutation::getPointer" ref="a593a7496727ce80d336e9931a9003ef9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const _UnsignedInt* getPointer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>col <code>i</code> and col <code>j</code> are swapped </p> <p>row <code>i</code> and row <code>j</code> are swapped </p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="matrix-permutation_8h.html">matrix-permutation.h</a></li> <li><a class="el" href="matrix-permutation_8inl.html">matrix-permutation.inl</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Aug 30 2011 for linbox by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>