<p>In <a href="https://github.com/mlpack/mlpack/pull/664#discussion_r67933244">src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp</a>:</p>
<pre style='color:#555'>&gt; +  arma::Mat&lt;HilbertElemType&gt;*&amp; LocalDataset() { return localDataset; }
&gt; +  
&gt; +  //! Modify the valueToInsert
&gt; +  arma::Col&lt;HilbertElemType&gt;* ValueToInsert() { return valueToInsert; }
&gt; +
&gt; +  //! Modify the valueToInsert
&gt; +  const arma::Col&lt;HilbertElemType&gt;* ValueToInsert() const
&gt; +  { return valueToInsert; }
&gt; +
&gt; + private:
&gt; +  //! The number of bits that we can store
&gt; +  static constexpr size_t order = sizeof(HilbertElemType) * CHAR_BIT;
&gt; +  //! The local dataset
&gt; +  arma::Mat&lt;HilbertElemType&gt;* localDataset;
&gt; +  //! Indicates that the node owns the local dataset
&gt; +  bool ownsLocalDataset;
</pre>
<p>It may also make sense here to just store localDataset as an <code>arma::Mat&lt;HilbertElemType&gt;</code> instead of a pointer to one, and then you wouldn't need <code>ownsLocalDataset</code>.  If the goal was to avoid copying the data of another <code>DiscreteHilbertValue</code>'s <code>localDataset</code> object, you could use the move constructor for Armadillo matrices.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/664/files/f9127cea62d5ce1ad8d5f59931de108a2f7cdd9b#r67933244">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFKDtswwGDdOKDmaeoRY6nmYhRCsTks5qODfggaJpZM4IrlzT">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIialbp1OW1Z_ZW4JZ3Da2XXEhqcks5qODfggaJpZM4IrlzT.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/664/files/f9127cea62d5ce1ad8d5f59931de108a2f7cdd9b#r67933244"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>