<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Eigen::Select Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <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>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespace_eigen.html">Eigen</a> </li> <li class="navelem"><a class="el" href="class_eigen_1_1_select.html">Select</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <div class="title">Eigen::Select Class Reference<div class="ingroups"><a class="el" href="group___core___module.html">Core module</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="Eigen::Select" --><!-- doxytag: inherits="Eigen::internal::no_assignment_operator" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Expression of a coefficient wise version of the C++ ternary operator ?: </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">ConditionMatrixType</td><td>the type of the <em>condition</em> expression which must be a boolean matrix </td></tr> <tr><td class="paramname">ThenMatrixType</td><td>the type of the <em>then</em> expression </td></tr> <tr><td class="paramname">ElseMatrixType</td><td>the type of the <em>else</em> expression</td></tr> </table> </dd> </dl> <p>This class represents an expression of a coefficient wise version of the C++ ternary operator ?:. It is the return type of <a class="el" href="class_eigen_1_1_dense_base.html#aedb3099f407cf2d08d78aded4da7d103">DenseBase::select()</a> and most of the time this is the only way it is used.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_eigen_1_1_dense_base.html#aedb3099f407cf2d08d78aded4da7d103">DenseBase::select(const DenseBase<ThenDerived>&, const DenseBase<ElseDerived>&) const</a> </dd></dl> </div><div class="dynheader"> Inheritance diagram for Eigen::Select:</div> <div class="dyncontent"> <div class="center"><img src="class_eigen_1_1_select__inherit__graph.png" border="0" usemap="#_eigen_1_1_select_inherit__map" alt="Inheritance graph"/></div> <map name="_eigen_1_1_select_inherit__map" id="_eigen_1_1_select_inherit__map"> <area shape="rect" id="node2" href="class_eigen_1_1internal_1_1no__assignment__operator.html" title="Eigen::internal::no_assignment_operator" alt="" coords="5,5,259,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="class_eigen_1_1_select-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <br class="typebreak"/> <a class="el" href="struct_eigen_1_1internal_1_1dense__xpr__base.html">internal::dense_xpr_base</a><br class="typebreak"/> < <a class="el" href="class_eigen_1_1_select.html">Select</a> >::type </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#ada31bd942537f3a6d40c982789529285">Base</a></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#ab44476bc4774363ca2696d42c3aca637">Select</a> (const ConditionMatrixType &conditionMatrix, const ThenMatrixType &thenMatrix, const ElseMatrixType &elseMatrix)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">Index </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a028ff6e8092f5d027f57a23fffeb75c9">rows</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">Index </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a9e0b33d784cfe24412a845e4dd87238f">cols</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const Scalar </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#ae8f097042e172e514443095f7b68b093">coeff</a> (Index i, Index j) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const Scalar </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#aba2fa21a50fb5a3826b349c92e2ed5d2">coeff</a> (Index i) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const ConditionMatrixType & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a2b60bf1500b97093325d8d932553b95f">conditionMatrix</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const ThenMatrixType & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a791e6da0d1f1392e90e13661b4459e96">thenMatrix</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const ElseMatrixType & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a5f5f16f3ab9e7786e4e88a4983104bb5">elseMatrix</a> () const </td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const ConditionMatrixType::Nested </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a7afe6d5955861062bd3d666caf94b558">m_condition</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const ThenMatrixType::Nested </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#ac294f4e59fc6f6c09b32941056773378">m_then</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const ElseMatrixType::Nested </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_select.html#a819b22ab65f9747a8b78dcbd0318d231">m_else</a></td></tr> </table> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="ada31bd942537f3a6d40c982789529285"></a><!-- doxytag: member="Eigen::Select::Base" ref="ada31bd942537f3a6d40c982789529285" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="struct_eigen_1_1internal_1_1dense__xpr__base.html">internal::dense_xpr_base</a><<a class="el" href="class_eigen_1_1_select.html">Select</a>>::type <a class="el" href="class_eigen_1_1_select.html#ada31bd942537f3a6d40c982789529285">Eigen::Select::Base</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00074">74</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ab44476bc4774363ca2696d42c3aca637"></a><!-- doxytag: member="Eigen::Select::Select" ref="ab44476bc4774363ca2696d42c3aca637" args="(const ConditionMatrixType &conditionMatrix, const ThenMatrixType &thenMatrix, const ElseMatrixType &elseMatrix)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Eigen::Select::Select </td> <td>(</td> <td class="paramtype">const ConditionMatrixType & </td> <td class="paramname"><em>conditionMatrix</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const ThenMatrixType & </td> <td class="paramname"><em>thenMatrix</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const ElseMatrixType & </td> <td class="paramname"><em>elseMatrix</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00077">77</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ae8f097042e172e514443095f7b68b093"></a><!-- doxytag: member="Eigen::Select::coeff" ref="ae8f097042e172e514443095f7b68b093" args="(Index i, Index j) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const Scalar Eigen::Select::coeff </td> <td>(</td> <td class="paramtype">Index </td> <td class="paramname"><em>i</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Index </td> <td class="paramname"><em>j</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00089">89</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="aba2fa21a50fb5a3826b349c92e2ed5d2"></a><!-- doxytag: member="Eigen::Select::coeff" ref="aba2fa21a50fb5a3826b349c92e2ed5d2" args="(Index i) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const Scalar Eigen::Select::coeff </td> <td>(</td> <td class="paramtype">Index </td> <td class="paramname"><em>i</em></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00097">97</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a9e0b33d784cfe24412a845e4dd87238f"></a><!-- doxytag: member="Eigen::Select::cols" ref="a9e0b33d784cfe24412a845e4dd87238f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Index Eigen::Select::cols </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00087">87</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a2b60bf1500b97093325d8d932553b95f"></a><!-- doxytag: member="Eigen::Select::conditionMatrix" ref="a2b60bf1500b97093325d8d932553b95f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const ConditionMatrixType& Eigen::Select::conditionMatrix </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00105">105</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a5f5f16f3ab9e7786e4e88a4983104bb5"></a><!-- doxytag: member="Eigen::Select::elseMatrix" ref="a5f5f16f3ab9e7786e4e88a4983104bb5" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const ElseMatrixType& Eigen::Select::elseMatrix </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00115">115</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a028ff6e8092f5d027f57a23fffeb75c9"></a><!-- doxytag: member="Eigen::Select::rows" ref="a028ff6e8092f5d027f57a23fffeb75c9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Index Eigen::Select::rows </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00086">86</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a791e6da0d1f1392e90e13661b4459e96"></a><!-- doxytag: member="Eigen::Select::thenMatrix" ref="a791e6da0d1f1392e90e13661b4459e96" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const ThenMatrixType& Eigen::Select::thenMatrix </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00110">110</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a7afe6d5955861062bd3d666caf94b558"></a><!-- doxytag: member="Eigen::Select::m_condition" ref="a7afe6d5955861062bd3d666caf94b558" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const ConditionMatrixType::Nested <a class="el" href="class_eigen_1_1_select.html#a7afe6d5955861062bd3d666caf94b558">Eigen::Select::m_condition</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00121">121</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a819b22ab65f9747a8b78dcbd0318d231"></a><!-- doxytag: member="Eigen::Select::m_else" ref="a819b22ab65f9747a8b78dcbd0318d231" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const ElseMatrixType::Nested <a class="el" href="class_eigen_1_1_select.html#a819b22ab65f9747a8b78dcbd0318d231">Eigen::Select::m_else</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00123">123</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="ac294f4e59fc6f6c09b32941056773378"></a><!-- doxytag: member="Eigen::Select::m_then" ref="ac294f4e59fc6f6c09b32941056773378" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const ThenMatrixType::Nested <a class="el" href="class_eigen_1_1_select.html#ac294f4e59fc6f6c09b32941056773378">Eigen::Select::m_then</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00122">122</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>