title: Boost Matrix Dynamic Size Expansion
body: <p>I am writing  a c++ program which uses boost library for matrix operations. I have a need were by i have to dynamically expand the size of the initial matrix.</p>
  
  <p>Example:
  if my matrix size was:</p>
  
  <pre><code>   matrix&lt;float&gt; m(3,3);
  </code></pre>
  
  <p>and later my matrix will expand and i'll need a 4*4 matrix. The naive approach i could think of is allocate a new matrix with size 4,4 and and copy all elements of 3*3 matrix to it. Isn't there any better way of doing this in boost?</p>