<!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>mrpt::math::CArrayNumeric 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="namespacemrpt.html">mrpt</a> </li> <li class="navelem"><a class="el" href="namespacemrpt_1_1math.html">math</a> </li> <li class="navelem"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html">CArrayNumeric</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="#friends">Friends</a> </div> <div class="headertitle"> <div class="title">mrpt::math::CArrayNumeric Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="mrpt::math::CArrayNumeric" --><!-- doxytag: inherits="Matrix< T, N, 1 >" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric is an array for numeric types supporting several mathematical operations (actually...">CArrayNumeric</a> is an array for numeric types supporting several mathematical operations (actually, just a wrapper on Eigen::Matrix<T,N,1>) </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_array_float.html" title="A partial specialization of CArrayNumeric for float numbers.">CArrayFloat</a>, <a class="el" href="classmrpt_1_1math_1_1_c_array_double.html" title="A partial specialization of CArrayNumeric for double numbers.">CArrayDouble</a>, <a class="el" href="classmrpt_1_1math_1_1_c_array.html" title="A STL container (as wrapper) for arrays of constant size defined at compile time - Users will most li...">CArray</a> </dd></dl> </div> <p><code>#include <<a class="el" href="_c_array_8h_source.html">mrpt/math/CArray.h</a>></code></p> <div class="dynheader"> Inheritance diagram for mrpt::math::CArrayNumeric:</div> <div class="dyncontent"> <div class="center"><img src="classmrpt_1_1math_1_1_c_array_numeric__inherit__graph.png" border="0" usemap="#mrpt_1_1math_1_1_c_array_numeric_inherit__map" alt="Inheritance graph"/></div> <map name="mrpt_1_1math_1_1_c_array_numeric_inherit__map" id="mrpt_1_1math_1_1_c_array_numeric_inherit__map"> <area shape="rect" id="node11" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="mrpt::math::CArrayNumeric\< unsigned int, N \>" alt="" coords="2054,5,2349,32"/><area shape="rect" id="node15" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="mrpt::math::CArrayNumeric\< int, N \>" alt="" coords="2082,56,2321,83"/><area shape="rect" id="node19" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="mrpt::math::CArrayNumeric\< double, N \>" alt="" coords="2070,107,2333,133"/><area shape="rect" id="node29" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="mrpt::math::CArrayNumeric\< float, N \>" alt="" coords="2076,157,2327,184"/><area shape="rect" id="node33" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="mrpt::math::CArrayNumeric\< T, 4 \>" alt="" coords="2086,208,2317,235"/><area shape="rect" id="node2" href="class_eigen_1_1_matrix.html" title="Eigen::Matrix\< T, N, 1 \>" alt="" coords="1489,107,1653,133"/><area shape="rect" id="node4" href="class_eigen_1_1_matrix.html" title="The matrix class, also used for vectors and row-vectors." alt="" coords="1272,107,1371,133"/><area shape="rect" id="node6" href="class_eigen_1_1_plain_object_base.html" title="Eigen::PlainObjectBase\< Matrix\< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols \> \>" alt="" coords="641,107,1221,133"/><area shape="rect" id="node8" href="class_eigen_1_1_plain_object_base.html" title="Dense storage base class for matrices and arrays." alt="" coords="5,107,165,133"/><area shape="rect" id="node13" href="classmrpt_1_1math_1_1_c_array_u_int.html" title="A partial specialization of CArrayNumeric for unsigned int numbers." alt="" coords="2409,5,2567,32"/><area shape="rect" id="node17" href="classmrpt_1_1math_1_1_c_array_int.html" title="A partial specialization of CArrayNumeric for int numbers." alt="" coords="2413,56,2563,83"/><area shape="rect" id="node21" href="classmrpt_1_1math_1_1_c_array_double.html" title="A partial specialization of CArrayNumeric for double numbers." alt="" coords="2401,107,2575,133"/><area shape="rect" id="node23" href="classmrpt_1_1math_1_1_c_array_double.html" title="mrpt::math::CArrayDouble\< 2 \>" alt="" coords="2702,56,2909,83"/><area shape="rect" id="node25" href="classmrpt_1_1math_1_1_c_array_double.html" title="mrpt::math::CArrayDouble\< 3 \>" alt="" coords="2702,107,2909,133"/><area shape="rect" id="node27" href="classmrpt_1_1math_1_1_c_array_double.html" title="mrpt::math::CArrayDouble\< 5 \>" alt="" coords="2702,157,2909,184"/><area shape="rect" id="node31" href="classmrpt_1_1math_1_1_c_array_float.html" title="A partial specialization of CArrayNumeric for float numbers." alt="" coords="2407,157,2569,184"/><area shape="rect" id="node35" href="classmrpt_1_1math_1_1_c_quaternion.html" title="A quaternion, which can represent a 3D rotation as pair , with a real part "r" and a 3D vector ..." alt="" coords="2405,208,2571,235"/><area shape="rect" id="node37" href="classmrpt_1_1math_1_1_c_quaternion.html" title="mrpt::math::CQuaternion\< double \>" alt="" coords="2691,208,2919,235"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classmrpt_1_1math_1_1_c_array_numeric-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 <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>< T, N, 1 > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html#adba71632a06604a7ddb31653c1e92f21">Base</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Base class typedef. <a href="#adba71632a06604a7ddb31653c1e92f21"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="class_eigen_1_1_matrix.html#a26fa7cd7cd75ca39fcdd85d9f79be1fc">Base::PlainObject</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_matrix.html#a26fa7cd7cd75ca39fcdd85d9f79be1fc">PlainObject</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="classmrpt_1_1math_1_1_c_array_numeric.html#ab2a9dac3553719edabb57e8654dc015e">CArrayNumeric</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#ab2a9dac3553719edabb57e8654dc015e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html#ac560194e5552e27ff921677f4d2f0e08">CArrayNumeric</a> (const T *ptr)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from initial values ptr[0]-ptr[N-1]. <a href="#ac560194e5552e27ff921677f4d2f0e08"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class ARRAYLIKE > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html#a3f0bcca56a522e77d05367df17d6f418">CArrayNumeric</a> (const ARRAYLIKE &obj)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialization from a vector-like source, that is, anything implementing operator[]. <a href="#a3f0bcca56a522e77d05367df17d6f418"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<typename OtherDerived > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html">CArrayNumeric</a>< T, N > & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html#a2c102c378ead6d9b09e12b087ab272aa">operator=</a> (const <a class="el" href="class_eigen_1_1_matrix_base.html">Eigen::MatrixBase</a>< OtherDerived > &other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_matrix.html#a1cd7b8fd2d1aca389fde3fe07ae1e413">swap</a> (MatrixBase< OtherDerived > const &other)</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_matrix.html#aee9fb615d9927802c383d3698d1266bd">innerStride</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_matrix.html#a232f0c878d300ada7891b6d9d1b0a914">outerStride</a> () const </td></tr> <tr><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="class_eigen_1_1_matrix.html#a8d692b595be64d2a79d354837da366c5">internal::conservative_resize_like_impl</a></td></tr> </table> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="adba71632a06604a7ddb31653c1e92f21"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::Base" ref="adba71632a06604a7ddb31653c1e92f21" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a><T,N,1> <a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html#adba71632a06604a7ddb31653c1e92f21">mrpt::math::CArrayNumeric::Base</a></td> </tr> </table> </div> <div class="memdoc"> <p>Base class typedef. </p> <dl class="see"><dt><b>See also:</b></dt><dd>PlainObjectBase </dd></dl> <p>Reimplemented from <a class="el" href="class_eigen_1_1_matrix.html#a3937937098ba1abede25f8bfa441fecb">Eigen::Matrix< T, N, 1 ></a>.</p> <p>Reimplemented in <a class="el" href="classmrpt_1_1math_1_1_c_array_u_int.html#ac284803554556d496c561edc19fcc048">mrpt::math::CArrayUInt</a>, <a class="el" href="classmrpt_1_1math_1_1_c_array_int.html#a9000dc8a451b2be284d779e4c51f0204">mrpt::math::CArrayInt</a>, <a class="el" href="classmrpt_1_1math_1_1_c_array_double.html#a5e27fec4a8f0a18d36c7120edfb8d09f">mrpt::math::CArrayDouble</a>, <a class="el" href="classmrpt_1_1math_1_1_c_array_float.html#aa267c21d5354d2977893b3373d94deb6">mrpt::math::CArrayFloat</a>, and <a class="el" href="classmrpt_1_1math_1_1_c_quaternion.html#a15d61e09fd7d5a035e455b84069356d8">mrpt::math::CQuaternion</a>.</p> <p>Definition at line <a class="el" href="_c_array_8h_source.html#l00327">327</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p> </div> </div> <a class="anchor" id="a26fa7cd7cd75ca39fcdd85d9f79be1fc"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::PlainObject" ref="a26fa7cd7cd75ca39fcdd85d9f79be1fc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="class_eigen_1_1_matrix.html#a26fa7cd7cd75ca39fcdd85d9f79be1fc">Base::PlainObject</a> <a class="el" href="class_eigen_1_1_matrix.html#a26fa7cd7cd75ca39fcdd85d9f79be1fc">Eigen::Matrix::PlainObject</a><code> [inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00155">155</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="a976ced6d6db59cd8d9e0406cca069311"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::@210" ref="a976ced6d6db59cd8d9e0406cca069311" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">anonymous enum<code> [inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00151">151</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a6cbafec3221e1e82b4fee5d04d26410f"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::@211" ref="a6cbafec3221e1e82b4fee5d04d26410f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">anonymous enum<code> [inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00157">157</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="ab2a9dac3553719edabb57e8654dc015e"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::CArrayNumeric" ref="ab2a9dac3553719edabb57e8654dc015e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::CArrayNumeric::CArrayNumeric </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Default constructor. </p> <p>Definition at line <a class="el" href="_c_array_8h_source.html#l00329">329</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p> </div> </div> <a class="anchor" id="ac560194e5552e27ff921677f4d2f0e08"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::CArrayNumeric" ref="ac560194e5552e27ff921677f4d2f0e08" args="(const T *ptr)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::CArrayNumeric::CArrayNumeric </td> <td>(</td> <td class="paramtype">const T * </td> <td class="paramname"><em>ptr</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor from initial values ptr[0]-ptr[N-1]. </p> <p>Definition at line <a class="el" href="_c_array_8h_source.html#l00331">331</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p> </div> </div> <a class="anchor" id="a3f0bcca56a522e77d05367df17d6f418"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::CArrayNumeric" ref="a3f0bcca56a522e77d05367df17d6f418" args="(const ARRAYLIKE &obj)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class ARRAYLIKE > </div> <table class="memname"> <tr> <td class="memname">mrpt::math::CArrayNumeric::CArrayNumeric </td> <td>(</td> <td class="paramtype">const ARRAYLIKE & </td> <td class="paramname"><em>obj</em></td><td>)</td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Initialization from a vector-like source, that is, anything implementing operator[]. </p> <p>Definition at line <a class="el" href="_c_array_8h_source.html#l00337">337</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aee9fb615d9927802c383d3698d1266bd"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::innerStride" ref="aee9fb615d9927802c383d3698d1266bd" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Index Eigen::Matrix::innerStride </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00339">339</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a2c102c378ead6d9b09e12b087ab272aa"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::operator=" ref="a2c102c378ead6d9b09e12b087ab272aa" args="(const Eigen::MatrixBase< OtherDerived > &other)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename OtherDerived > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html">CArrayNumeric</a><T,N>& mrpt::math::CArrayNumeric::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_eigen_1_1_matrix_base.html">Eigen::MatrixBase</a>< OtherDerived > & </td> <td class="paramname"><em>other</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Reimplemented from <a class="el" href="class_eigen_1_1_matrix.html#a53cbbea2f332517453a63f829020c1e1">Eigen::Matrix< T, N, 1 ></a>.</p> <p>Definition at line <a class="el" href="_c_array_8h_source.html#l00340">340</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p> </div> </div> <a class="anchor" id="a232f0c878d300ada7891b6d9d1b0a914"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::outerStride" ref="a232f0c878d300ada7891b6d9d1b0a914" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Index Eigen::Matrix::outerStride </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00340">340</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <a class="anchor" id="a1cd7b8fd2d1aca389fde3fe07ae1e413"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::swap" ref="a1cd7b8fd2d1aca389fde3fe07ae1e413" args="(MatrixBase< OtherDerived > const &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Eigen::Matrix::swap </td> <td>(</td> <td class="paramtype"><a class="el" href="class_eigen_1_1_matrix_base.html">MatrixBase</a>< OtherDerived > const & </td> <td class="paramname"><em>other</em></td><td>)</td> <td><code> [inline, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00336">336</a> of file <a class="el" href="_core_source.html">Core</a>.</p> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a8d692b595be64d2a79d354837da366c5"></a><!-- doxytag: member="mrpt::math::CArrayNumeric::internal::conservative_resize_like_impl" ref="a8d692b595be64d2a79d354837da366c5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend struct internal::conservative_resize_like_impl<code> [friend, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_core_source.html#l00363">363</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>