title: How much memory is required to store a matrix using the armadillo linear algebra package?
body: <p>I am getting the same value on using the sizeOf operator for a matrix of size 100*100 and 1*1 respectively.  </p>
  
  <pre><code>mat A(100,100),B(1,1);
  A.randu();
  B.randu();
  cout&lt;&lt;"Memory requested for A:"&lt;&lt;sizeOf(A);
  cout&lt;&lt;"Memory requested for B:"&lt;&lt;sizeOf(B);
  </code></pre>
  
  <p>Output:<br>
  Memory requested for A:160<br>
  Memory requested for B:160  </p>
  
  <p>Well how do I get the actual memory required by the code for each variable A,B.  </p>