title: armadillo C++: matrix initialization from array
body: <p>I am new to using armadillo, and could not get the following in spite of trying / searching quite a bit.</p>
  
  <p>There are two huge (dynamic) arrays (not vectors) that I need to perform correlation on. I resolved to use armadillo for this. I understand how to initialize arma::mat using vectors, but can I use arrays to do so? I understand not as I don't see any mention in the <a href="http://arma.sourceforge.net/docs.html#Mat" rel="noreferrer">documentation</a>.
  I am trying to avoid the use of vectors for internal design reasons.
  I tried manually initializing each element using sample arrays (as a dumb but starting point). Something like the following code wouldn't work.</p>
  
  <pre><code>using namespace std;
  using namespace arma;   
  
  mat A(SIZE, 1), B(SIZE, 1);
  
  for(int i = 0; i &lt; SIZE; i++)
  {
      A &lt;&lt; v[i] &lt;&lt; endr;
      B &lt;&lt; c[i] &lt;&lt; endr;
  }
  
  cout &lt;&lt; "A: " &lt;&lt; endl;
  A.print();
  cout &lt;&lt; "B: " &lt;&lt; endl;
  B.print();
  </code></pre>
  
  <p>For the input arrays v = {1, 2, 0, -1, .9} and c = {0, .5, 1, -2, -5}. The output will be:</p>
  
  <pre><code>A:
          0
  B:
    -5.0000
  </code></pre>
  
  <p>which is understandable.
  Any work around for initializing arma::mat or arma::colvector with arrays? Thanks in advance!</p>