Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 4322

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!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::CSparseMatrixTemplate 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> &gt; <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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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_sparse_matrix_template.html">CSparseMatrixTemplate</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">mrpt::math::CSparseMatrixTemplate Class Reference<div class="ingroups"><a class="el" href="group__mrpt__base__grp.html">[mrpt-base]</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="mrpt::math::CSparseMatrixTemplate" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A sparse matrix container (with cells of any type), with iterators. </p>
<p>This class stores only those elements created by assigning them a value, for example: "M(2,3)=8;".</p>
<p>This class doesn't implement math operations since it's a generic sparse container, but it can be used to initialize the contents of a CSparse library-based matrix of type <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix.html" title="A sparse matrix capable of efficient math operations (a wrapper around the CSparse library) The type ...">mrpt::math::CSparseMatrix</a>.</p>
<p>Note that reading non-existing cell elements will return the default value (0 for numbers) and that cell will remain non-created in the matrix.</p>
<p>There is an additional method "exists(i,j)" to check whether a given element exists in the matrix.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix.html" title="A sparse matrix capable of efficient math operations (a wrapper around the CSparse library) The type ...">mrpt::math::CSparseMatrix</a>, <a class="el" href="classmrpt_1_1math_1_1_c_sparse_symmetrical_matrix.html" title="A sparse matrix container for square symmetrical content around the main diagonal.">CSparseSymmetricalMatrix</a> </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Methods marked as "Doesn't check bounds" mean that if an access to an element out of the matrix size is tried, an empty element will be assumed, but this will not raise any invalid memory access. </dd></dl>
</div>
<p><code>#include &lt;<a class="el" href="_c_sparse_matrix_template_8h_source.html">mrpt/math/CSparseMatrixTemplate.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for mrpt::math::CSparseMatrixTemplate:</div>
<div class="dyncontent">
<div class="center"><img src="classmrpt_1_1math_1_1_c_sparse_matrix_template__inherit__graph.png" border="0" usemap="#mrpt_1_1math_1_1_c_sparse_matrix_template_inherit__map" alt="Inheritance graph"/></div>
<map name="mrpt_1_1math_1_1_c_sparse_matrix_template_inherit__map" id="mrpt_1_1math_1_1_c_sparse_matrix_template_inherit__map">
<area shape="rect" id="node3" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html" title="mrpt::math::CSparseMatrixTemplate\&lt; T \&gt;" alt="" coords="5,96,272,123"/><area shape="rect" id="node5" href="classmrpt_1_1math_1_1_c_sparse_symmetrical_matrix.html" title="A sparse matrix container for square symmetrical content around the main diagonal." alt="" coords="12,173,265,200"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classmrpt_1_1math_1_1_c_sparse_matrix_template-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="classstd_1_1map.html">std::map</a>&lt; std::pair<br class="typebreak"/>
&lt; size_t, size_t &gt;, T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ae991e80973496a1069f6711688c25441">SparseMatrixMap</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal map type, used to store the actual matrix.  <a href="#ae991e80973496a1069f6711688c25441"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <br class="typebreak"/>
<a class="el" href="eigen__plugins_8h.html#a8dbda719917732693c56cee228465ed9">SparseMatrixMap::const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3">const_iterator</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Const iterator to move through the matrix.  <a href="#af0e5e1da6f543184aa09325ff6c358f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <br class="typebreak"/>
SparseMatrixMap::const_reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581">const_reverse_iterator</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Const reverse iterator to move through the matrix.  <a href="#a74ec9d443954f17d0b81fab52062c581"></a><br/></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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a09b312cf33892c92155be7e189bb7d87">CSparseMatrixTemplate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Basic constructor with no data.  <a href="#a09b312cf33892c92155be7e189bb7d87"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a37725f74e077b0b08197ba9bfd8caa7e">CSparseMatrixTemplate</a> (size_t nR, size_t nC)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with default size.  <a href="#a37725f74e077b0b08197ba9bfd8caa7e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#aac4a1df049c41beee37e236c22ee0d2b">operator()</a> (size_t r, size_t c) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Element access operator.  <a href="#aac4a1df049c41beee37e236c22ee0d2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a815eb2e7018bf6784cdaa2931d26f658">exists</a> (size_t r, size_t c) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Element access operator.  <a href="#a815eb2e7018bf6784cdaa2931d26f658"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acde6c0d038c8aa821e13d8ddb22e55ee">operator()</a> (size_t r, size_t c)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference access operator.  <a href="#acde6c0d038c8aa821e13d8ddb22e55ee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a791dd49435a4bed1d3c340939807697c">getRowCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the amount of rows in this matrix.  <a href="#a791dd49435a4bed1d3c340939807697c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad3d8491c5a4dfb46dabf00be2e595d16">getColCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the amount of columns in this matrix.  <a href="#ad3d8491c5a4dfb46dabf00be2e595d16"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71ee65d3839b50f9e2aa4779d7d97ef6">getRow</a> (size_t nRow, <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;vec) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extracts a full row from the matrix.  <a href="#a71ee65d3839b50f9e2aa4779d7d97ef6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a9948c63043409dbf87c717eb9eac7085">getColumn</a> (size_t nCol, <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;vec) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extracts a full column from the matrix.  <a href="#a9948c63043409dbf87c717eb9eac7085"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a19eef345122d0fdae2e2023a21d39d7f">insert</a> (size_t row, size_t column, const T &amp;obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts an element into the matrix.  <a href="#a19eef345122d0fdae2e2023a21d39d7f"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class MATRIX_LIKE &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a968bcd8ff0c21e113c614b7c2655b551">insertMatrix</a> (size_t row, size_t column, const MATRIX_LIKE &amp;mat)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts submatrix at a given location.  <a href="#a968bcd8ff0c21e113c614b7c2655b551"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#afcf8eb5ac80e0f37ad19adca335faf6d">begin</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator which points to the starting point of the matrix.  <a href="#afcf8eb5ac80e0f37ad19adca335faf6d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad22beed94e2b53572d00cae7c4fbb65c">end</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator which points to the end of the matrix.  <a href="#ad22beed94e2b53572d00cae7c4fbb65c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581">const_reverse_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acbd5ef9fea5f7b9da6b162333aa1e551">rbegin</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator which points to the end of the matrix, and can be used to move backwards.  <a href="#acbd5ef9fea5f7b9da6b162333aa1e551"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581">const_reverse_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ab15f7a77373e4fe825a27c9866b2bce2">rend</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an iterator which points to the starting point of the matrix, although it's the upper limit of the matrix since it's a reverse iterator.  <a href="#ab15f7a77373e4fe825a27c9866b2bce2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad01eb9cffa35cdc51de6e311d437773b">setRow</a> (size_t nRow, const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;vec, const T &amp;nullObject=T())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts a full row into the matrix.  <a href="#ad01eb9cffa35cdc51de6e311d437773b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a1a19635a67a1e5f04939fc2c596c03b0">setColumn</a> (size_t nCol, const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;vec, const T &amp;nullObject=T())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts a full column into the matrix.  <a href="#a1a19635a67a1e5f04939fc2c596c03b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5082b1f2bb5aec9b1f8b7ce5371bc7c3">resize</a> (size_t nRows, size_t nCols)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the size of the matrix.  <a href="#a5082b1f2bb5aec9b1f8b7ce5371bc7c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html">CSparseMatrixTemplate</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ac44e151c4b80333b0abd0679a8330f66">operator()</a> (size_t firstRow, size_t lastRow, size_t firstColumn, size_t lastColumn) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extracts a submatrix form the matrix.  <a href="#ac44e151c4b80333b0abd0679a8330f66"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a2bab052b274c109beb22dae88d33d5e8">getAsVector</a> (<a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;vec) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a vector containing all the elements of the matrix, ignoring their position.  <a href="#a2bab052b274c109beb22dae88d33d5e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5d0fa6333648b6433ebd9b62172c968b">getNonNullElements</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the amount of non-null elements inside the matrix.  <a href="#a5d0fa6333648b6433ebd9b62172c968b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a6b717486d2d69655b30d110db4165bd7">empty</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Are there no elements set to !=0 ?  <a href="#a6b717486d2d69655b30d110db4165bd7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71e8ea88fef40c9ce94fb840e8c76f2a">getNullElements</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the amount of null elements inside the matrix.  <a href="#a71e8ea88fef40c9ce94fb840e8c76f2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#abbba59026b3c0708a9dc2ce1d052d107">isNull</a> (size_t nRow, size_t nCol) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether an element of the matrix is the default object.  <a href="#abbba59026b3c0708a9dc2ce1d052d107"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5111f7b0acb99ab99c4e798cb73b6cf8">isNotNull</a> (size_t nRow, size_t nCol) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether an element of the matrix is not the default object.  <a href="#a5111f7b0acb99ab99c4e798cb73b6cf8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a731b30d399c81cc6261bcca28ed60b7f">clear</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Completely removes all elements, although maintaining the matrix's size.  <a href="#a731b30d399c81cc6261bcca28ed60b7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#afcf0a2e922398169f5cc92c7520b0832">purge</a> (T nullObject=T())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks each non-null elements against the basic objects, erasing unnecesary references to it.  <a href="#afcf0a2e922398169f5cc92c7520b0832"></a><br/></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">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a8812d55d240256f30291d41d525cac4e">mRows</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of the matrix.  <a href="#a8812d55d240256f30291d41d525cac4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ade92795cdb6af9c4ce6c3a66aa4ee69c">mColumns</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ae991e80973496a1069f6711688c25441">SparseMatrixMap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a979feefa0822dc5d62e36d7dd0905e92">objectList</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Actual matrix.  <a href="#a979feefa0822dc5d62e36d7dd0905e92"></a><br/></td></tr>
</table>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="af0e5e1da6f543184aa09325ff6c358f3"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::const_iterator" ref="af0e5e1da6f543184aa09325ff6c358f3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="eigen__plugins_8h.html#a8dbda719917732693c56cee228465ed9">SparseMatrixMap::const_iterator</a> <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3">mrpt::math::CSparseMatrixTemplate::const_iterator</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Const iterator to move through the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581" title="Const reverse iterator to move through the matrix.">CSparseMatrixTemplate::const_reverse_iterator</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00064">64</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a74ec9d443954f17d0b81fab52062c581"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::const_reverse_iterator" ref="a74ec9d443954f17d0b81fab52062c581" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef SparseMatrixMap::const_reverse_iterator <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581">mrpt::math::CSparseMatrixTemplate::const_reverse_iterator</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Const reverse iterator to move through the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3" title="Const iterator to move through the matrix.">CSparseMatrixTemplate::const_iterator</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00069">69</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae991e80973496a1069f6711688c25441"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::SparseMatrixMap" ref="ae991e80973496a1069f6711688c25441" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classstd_1_1map.html">std::map</a>&lt;std::pair&lt;size_t,size_t&gt;,T&gt; <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ae991e80973496a1069f6711688c25441">mrpt::math::CSparseMatrixTemplate::SparseMatrixMap</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal map type, used to store the actual matrix. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00059">59</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a09b312cf33892c92155be7e189bb7d87"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::CSparseMatrixTemplate" ref="a09b312cf33892c92155be7e189bb7d87" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::math::CSparseMatrixTemplate::CSparseMatrixTemplate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Basic constructor with no data. </p>
<p>Size is set to (0,0). </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00083">83</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a37725f74e077b0b08197ba9bfd8caa7e"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::CSparseMatrixTemplate" ref="a37725f74e077b0b08197ba9bfd8caa7e" args="(size_t nR, size_t nC)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::math::CSparseMatrixTemplate::CSparseMatrixTemplate </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nR</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nC</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor with default size. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00087">87</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afcf8eb5ac80e0f37ad19adca335faf6d"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::begin" ref="afcf8eb5ac80e0f37ad19adca335faf6d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3">const_iterator</a> mrpt::math::CSparseMatrixTemplate::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an iterator which points to the starting point of the matrix. </p>
<p>It's a const_iterator, so that the usar isn't able to modify the matrix content into an invalid state. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad22beed94e2b53572d00cae7c4fbb65c" title="Returns an iterator which points to the end of the matrix.">end</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acbd5ef9fea5f7b9da6b162333aa1e551" title="Returns an iterator which points to the end of the matrix, and can be used to move backwards...">rbegin</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ab15f7a77373e4fe825a27c9866b2bce2" title="Returns an iterator which points to the starting point of the matrix, although it&#39;s the upper limit o...">rend</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00196">196</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="_c_sparse_matrix_8h_source.html#l00174">mrpt::math::CSparseMatrix::CSparseMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="a731b30d399c81cc6261bcca28ed60b7f"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::clear" ref="a731b30d399c81cc6261bcca28ed60b7f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Completely removes all elements, although maintaining the matrix's size. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00336">336</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="geometry_8h_source.html#l00500">mrpt::math::intersect()</a>.</p>

</div>
</div>
<a class="anchor" id="a6b717486d2d69655b30d110db4165bd7"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::empty" ref="a6b717486d2d69655b30d110db4165bd7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool mrpt::math::CSparseMatrixTemplate::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Are there no elements set to !=0 ? </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71e8ea88fef40c9ce94fb840e8c76f2a" title="Gets the amount of null elements inside the matrix.">getNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#abbba59026b3c0708a9dc2ce1d052d107" title="Checks whether an element of the matrix is the default object.">isNull</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5111f7b0acb99ab99c4e798cb73b6cf8" title="Checks whether an element of the matrix is not the default object.">isNotNull</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00307">307</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="_c_sparse_matrix_8h_source.html#l00174">mrpt::math::CSparseMatrix::CSparseMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="ad22beed94e2b53572d00cae7c4fbb65c"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::end" ref="ad22beed94e2b53572d00cae7c4fbb65c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#af0e5e1da6f543184aa09325ff6c358f3">const_iterator</a> mrpt::math::CSparseMatrixTemplate::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an iterator which points to the end of the matrix. </p>
<p>It's a const_iterator, so that the usar isn't able to modify the matrix content into an invalid state. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#afcf8eb5ac80e0f37ad19adca335faf6d" title="Returns an iterator which points to the starting point of the matrix.">begin</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acbd5ef9fea5f7b9da6b162333aa1e551" title="Returns an iterator which points to the end of the matrix, and can be used to move backwards...">rbegin</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ab15f7a77373e4fe825a27c9866b2bce2" title="Returns an iterator which points to the starting point of the matrix, although it&#39;s the upper limit o...">rend</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00203">203</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="_c_sparse_matrix_8h_source.html#l00174">mrpt::math::CSparseMatrix::CSparseMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="a815eb2e7018bf6784cdaa2931d26f658"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::exists" ref="a815eb2e7018bf6784cdaa2931d26f658" args="(size_t r, size_t c) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool mrpt::math::CSparseMatrixTemplate::exists </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Element access operator. </p>
<p>Checks bounds. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00099">99</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2bab052b274c109beb22dae88d33d5e8"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getAsVector" ref="a2bab052b274c109beb22dae88d33d5e8" args="(std::vector&lt; T &gt; &amp;vec) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::getAsVector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>vec</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a vector containing all the elements of the matrix, ignoring their position. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00291">291</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad3d8491c5a4dfb46dabf00be2e595d16"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getColCount" ref="ad3d8491c5a4dfb46dabf00be2e595d16" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t mrpt::math::CSparseMatrixTemplate::getColCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the amount of columns in this matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a791dd49435a4bed1d3c340939807697c" title="Returns the amount of rows in this matrix.">getRowCount</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00126">126</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="_c_sparse_matrix_8h_source.html#l00174">mrpt::math::CSparseMatrix::CSparseMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="a9948c63043409dbf87c717eb9eac7085"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getColumn" ref="a9948c63043409dbf87c717eb9eac7085" args="(size_t nCol, std::vector&lt; T &gt; &amp;vec) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::getColumn </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nCol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>vec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extracts a full column from the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad3d8491c5a4dfb46dabf00be2e595d16" title="Returns the amount of columns in this matrix.">getColCount</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71ee65d3839b50f9e2aa4779d7d97ef6" title="Extracts a full row from the matrix.">getRow</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a1a19635a67a1e5f04939fc2c596c03b0" title="Inserts a full column into the matrix.">setColumn</a> </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classstd_1_1logic__error.html" title="STL class.">std::logic_error</a></td><td>on out of range. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00158">158</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5d0fa6333648b6433ebd9b62172c968b"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getNonNullElements" ref="a5d0fa6333648b6433ebd9b62172c968b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t mrpt::math::CSparseMatrixTemplate::getNonNullElements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the amount of non-null elements inside the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71e8ea88fef40c9ce94fb840e8c76f2a" title="Gets the amount of null elements inside the matrix.">getNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#abbba59026b3c0708a9dc2ce1d052d107" title="Checks whether an element of the matrix is the default object.">isNull</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5111f7b0acb99ab99c4e798cb73b6cf8" title="Checks whether an element of the matrix is not the default object.">isNotNull</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00301">301</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="geometry_8h_source.html#l00500">mrpt::math::intersect()</a>.</p>

</div>
</div>
<a class="anchor" id="a71e8ea88fef40c9ce94fb840e8c76f2a"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getNullElements" ref="a71e8ea88fef40c9ce94fb840e8c76f2a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t mrpt::math::CSparseMatrixTemplate::getNullElements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the amount of null elements inside the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5d0fa6333648b6433ebd9b62172c968b" title="Gets the amount of non-null elements inside the matrix.">getNonNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#abbba59026b3c0708a9dc2ce1d052d107" title="Checks whether an element of the matrix is the default object.">isNull</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5111f7b0acb99ab99c4e798cb73b6cf8" title="Checks whether an element of the matrix is not the default object.">isNotNull</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00313">313</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a71ee65d3839b50f9e2aa4779d7d97ef6"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getRow" ref="a71ee65d3839b50f9e2aa4779d7d97ef6" args="(size_t nRow, std::vector&lt; T &gt; &amp;vec) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::getRow </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>vec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extracts a full row from the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a791dd49435a4bed1d3c340939807697c" title="Returns the amount of rows in this matrix.">getRowCount</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a9948c63043409dbf87c717eb9eac7085" title="Extracts a full column from the matrix.">getColumn</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad01eb9cffa35cdc51de6e311d437773b" title="Inserts a full row into the matrix.">setRow</a> </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classstd_1_1logic__error.html" title="STL class.">std::logic_error</a></td><td>on out of range. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00134">134</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a791dd49435a4bed1d3c340939807697c"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::getRowCount" ref="a791dd49435a4bed1d3c340939807697c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t mrpt::math::CSparseMatrixTemplate::getRowCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the amount of rows in this matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad3d8491c5a4dfb46dabf00be2e595d16" title="Returns the amount of columns in this matrix.">getColCount</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71ee65d3839b50f9e2aa4779d7d97ef6" title="Extracts a full row from the matrix.">getRow</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00119">119</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="_c_sparse_matrix_8h_source.html#l00174">mrpt::math::CSparseMatrix::CSparseMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="a19eef345122d0fdae2e2023a21d39d7f"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::insert" ref="a19eef345122d0fdae2e2023a21d39d7f" args="(size_t row, size_t column, const T &amp;obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::insert </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts an element into the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acde6c0d038c8aa821e13d8ddb22e55ee" title="Reference access operator.">operator()(size_t,size_t)</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00178">178</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a968bcd8ff0c21e113c614b7c2655b551"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::insertMatrix" ref="a968bcd8ff0c21e113c614b7c2655b551" args="(size_t row, size_t column, const MATRIX_LIKE &amp;mat)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MATRIX_LIKE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::insertMatrix </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const MATRIX_LIKE &amp;&#160;</td>
          <td class="paramname"><em>mat</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts submatrix at a given location. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00184">184</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5111f7b0acb99ab99c4e798cb73b6cf8"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::isNotNull" ref="a5111f7b0acb99ab99c4e798cb73b6cf8" args="(size_t nRow, size_t nCol) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool mrpt::math::CSparseMatrixTemplate::isNotNull </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nCol</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks whether an element of the matrix is not the default object. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5d0fa6333648b6433ebd9b62172c968b" title="Gets the amount of non-null elements inside the matrix.">getNonNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71e8ea88fef40c9ce94fb840e8c76f2a" title="Gets the amount of null elements inside the matrix.">getNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#abbba59026b3c0708a9dc2ce1d052d107" title="Checks whether an element of the matrix is the default object.">isNull</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00329">329</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="abbba59026b3c0708a9dc2ce1d052d107"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::isNull" ref="abbba59026b3c0708a9dc2ce1d052d107" args="(size_t nRow, size_t nCol) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool mrpt::math::CSparseMatrixTemplate::isNull </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nCol</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks whether an element of the matrix is the default object. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5d0fa6333648b6433ebd9b62172c968b" title="Gets the amount of non-null elements inside the matrix.">getNonNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71e8ea88fef40c9ce94fb840e8c76f2a" title="Gets the amount of null elements inside the matrix.">getNullElements</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a5111f7b0acb99ab99c4e798cb73b6cf8" title="Checks whether an element of the matrix is not the default object.">isNotNull</a> </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classstd_1_1logic__error.html" title="STL class.">std::logic_error</a></td><td>on out of range </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00321">321</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="aac4a1df049c41beee37e236c22ee0d2b"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::operator()" ref="aac4a1df049c41beee37e236c22ee0d2b" args="(size_t r, size_t c) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T mrpt::math::CSparseMatrixTemplate::operator() </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Element access operator. </p>
<p>Doesn't check bounds. </p>

<p>Reimplemented in <a class="el" href="classmrpt_1_1math_1_1_c_sparse_symmetrical_matrix.html#a384f17f143b017df9e351fc287c3fc0f">mrpt::math::CSparseSymmetricalMatrix</a>.</p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00091">91</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="acde6c0d038c8aa821e13d8ddb22e55ee"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::operator()" ref="acde6c0d038c8aa821e13d8ddb22e55ee" args="(size_t r, size_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T&amp; mrpt::math::CSparseMatrixTemplate::operator() </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reference access operator. </p>
<p>Checks for bounds. </p>

<p>Reimplemented in <a class="el" href="classmrpt_1_1math_1_1_c_sparse_symmetrical_matrix.html#ae86e074b3c8947fa9d0956d6813645e5">mrpt::math::CSparseSymmetricalMatrix</a>.</p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00109">109</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac44e151c4b80333b0abd0679a8330f66"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::operator()" ref="ac44e151c4b80333b0abd0679a8330f66" args="(size_t firstRow, size_t lastRow, size_t firstColumn, size_t lastColumn) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html">CSparseMatrixTemplate</a>&lt;T&gt; mrpt::math::CSparseMatrixTemplate::operator() </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>firstRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>lastRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>firstColumn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>lastColumn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extracts a submatrix form the matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acde6c0d038c8aa821e13d8ddb22e55ee" title="Reference access operator.">operator()(size_t,size_t)</a> </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classstd_1_1logic__error.html" title="STL class.">std::logic_error</a></td><td>on invalid bounds. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00276">276</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="afcf0a2e922398169f5cc92c7520b0832"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::purge" ref="afcf0a2e922398169f5cc92c7520b0832" args="(T nullObject=T())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::purge </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>nullObject</em> = <code>T()</code></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks each non-null elements against the basic objects, erasing unnecesary references to it. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00342">342</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="acbd5ef9fea5f7b9da6b162333aa1e551"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::rbegin" ref="acbd5ef9fea5f7b9da6b162333aa1e551" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581">const_reverse_iterator</a> mrpt::math::CSparseMatrixTemplate::rbegin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an iterator which points to the end of the matrix, and can be used to move backwards. </p>
<p>It's a const_reverse_iterator, so that the usar isn't able to modify the matrix content into an invalid state. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#afcf8eb5ac80e0f37ad19adca335faf6d" title="Returns an iterator which points to the starting point of the matrix.">begin</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad22beed94e2b53572d00cae7c4fbb65c" title="Returns an iterator which points to the end of the matrix.">end</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ab15f7a77373e4fe825a27c9866b2bce2" title="Returns an iterator which points to the starting point of the matrix, although it&#39;s the upper limit o...">rend</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00210">210</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab15f7a77373e4fe825a27c9866b2bce2"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::rend" ref="ab15f7a77373e4fe825a27c9866b2bce2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a74ec9d443954f17d0b81fab52062c581">const_reverse_iterator</a> mrpt::math::CSparseMatrixTemplate::rend </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an iterator which points to the starting point of the matrix, although it's the upper limit of the matrix since it's a reverse iterator. </p>
<p>Also, it's a const_reverse_iterator, so that the usar isn't able to modify the matrix content into an invalid state. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#afcf8eb5ac80e0f37ad19adca335faf6d" title="Returns an iterator which points to the starting point of the matrix.">begin</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ad22beed94e2b53572d00cae7c4fbb65c" title="Returns an iterator which points to the end of the matrix.">end</a>,<a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#acbd5ef9fea5f7b9da6b162333aa1e551" title="Returns an iterator which points to the end of the matrix, and can be used to move backwards...">rbegin</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00217">217</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5082b1f2bb5aec9b1f8b7ce5371bc7c3"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::resize" ref="a5082b1f2bb5aec9b1f8b7ce5371bc7c3" args="(size_t nRows, size_t nCols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::resize </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nRows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nCols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the size of the matrix. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00259">259</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

<p>Referenced by <a class="el" href="geometry_8h_source.html#l00500">mrpt::math::intersect()</a>.</p>

</div>
</div>
<a class="anchor" id="a1a19635a67a1e5f04939fc2c596c03b0"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::setColumn" ref="a1a19635a67a1e5f04939fc2c596c03b0" args="(size_t nCol, const std::vector&lt; T &gt; &amp;vec, const T &amp;nullObject=T())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::setColumn </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nCol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>vec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>nullObject</em> = <code>T()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts a full column into the matrix. </p>
<p>The third argument is used to specify a null object (which won't be inserted, since the matrix is sparse). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a9948c63043409dbf87c717eb9eac7085" title="Extracts a full column from the matrix.">getColumn</a> </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classstd_1_1logic__error.html" title="STL class.">std::logic_error</a></td><td>on out of range or wrong sized vector. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00243">243</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad01eb9cffa35cdc51de6e311d437773b"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::setRow" ref="ad01eb9cffa35cdc51de6e311d437773b" args="(size_t nRow, const std::vector&lt; T &gt; &amp;vec, const T &amp;nullObject=T())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::CSparseMatrixTemplate::setRow </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>vec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>nullObject</em> = <code>T()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts a full row into the matrix. </p>
<p>The third argument is used to specify a null object (which won't be inserted, since the matrix is sparse). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a71ee65d3839b50f9e2aa4779d7d97ef6" title="Extracts a full row from the matrix.">getRow</a> </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classstd_1_1logic__error.html" title="STL class.">std::logic_error</a></td><td>on out of range or wrong sized vector. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00225">225</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ade92795cdb6af9c4ce6c3a66aa4ee69c"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::mColumns" ref="ade92795cdb6af9c4ce6c3a66aa4ee69c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ade92795cdb6af9c4ce6c3a66aa4ee69c">mrpt::math::CSparseMatrixTemplate::mColumns</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00074">74</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8812d55d240256f30291d41d525cac4e"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::mRows" ref="a8812d55d240256f30291d41d525cac4e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a8812d55d240256f30291d41d525cac4e">mrpt::math::CSparseMatrixTemplate::mRows</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Size of the matrix. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00074">74</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</a>.</p>

</div>
</div>
<a class="anchor" id="a979feefa0822dc5d62e36d7dd0905e92"></a><!-- doxytag: member="mrpt::math::CSparseMatrixTemplate::objectList" ref="a979feefa0822dc5d62e36d7dd0905e92" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#ae991e80973496a1069f6711688c25441">SparseMatrixMap</a> <a class="el" href="classmrpt_1_1math_1_1_c_sparse_matrix_template.html#a979feefa0822dc5d62e36d7dd0905e92">mrpt::math::CSparseMatrixTemplate::objectList</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Actual matrix. </p>

<p>Definition at line <a class="el" href="_c_sparse_matrix_template_8h_source.html#l00078">78</a> of file <a class="el" href="_c_sparse_matrix_template_8h_source.html">CSparseMatrixTemplate.h</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>