<p>In <a href="https://github.com/mlpack/mlpack/pull/650#discussion_r64807796">src/mlpack/methods/preprocess/preprocess_split_main.cpp</a>:</p>
<pre style='color:#555'>&gt; +  Log::Info &lt;&lt; &quot;Train Data Count: &quot; &lt;&lt; get&lt;0&gt;(value).n_cols &lt;&lt; endl;
&gt; +  Log::Info &lt;&lt; &quot;Test Data Count: &quot; &lt;&lt; get&lt;1&gt;(value).n_cols &lt;&lt; endl;
&gt; +  Log::Info &lt;&lt; &quot;Train Label Count: &quot; &lt;&lt; get&lt;2&gt;(value).n_cols &lt;&lt; endl;
&gt; +  Log::Info &lt;&lt; &quot;Test Label Count: &quot; &lt;&lt; get&lt;3&gt;(value).n_cols &lt;&lt; endl;
&gt; +
&gt; +  // Cast double matrix to string matrix
&gt; +  //Mat&lt;string&gt; training = conv_to&lt;Mat&lt;string&gt;&gt;::from(get&lt;0&gt;(value));
&gt; +  //Mat&lt;string&gt; test = conv_to&lt;Mat&lt;string&gt;&gt;::from(get&lt;1&gt;(value));
&gt; +  //Mat&lt;string&gt; trainingLabels = conv_to&lt;Mat&lt;string&gt;&gt;::from(get&lt;2&gt;(value));
&gt; +  //Mat&lt;string&gt; testLabels = conv_to&lt;Mat&lt;string&gt;&gt;::from(get&lt;3&gt;(value));
&gt; +
&gt; +  //Cast double matrix to string matrix
&gt; +  mat training = get&lt;0&gt;(value);
&gt; +  mat test = get&lt;1&gt;(value);
&gt; +  mat trainingLabels = get&lt;2&gt;(value);
&gt; +  mat testLabels = get&lt;3&gt;(value);
</pre>
<p>I need to cast current Mat into string, but armadillo doesn't seem to provide Matrix with strings.<br>
I am searching for the best way to do this.</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 or <a href="https://github.com/mlpack/mlpack/pull/650/files/c8a60b2db341eab52927bb0707dfc3976e437c8b#r64807796">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKQqzQhRj-0v8z6oZV2eCwwm3J00ks5qFfdugaJpZM4IneDD.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/650/files/c8a60b2db341eab52927bb0707dfc3976e437c8b#r64807796"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>